Re: ERJasperReports: how to perform an operation with the generated file?
Re: ERJasperReports: how to perform an operation with the generated file?
- Subject: Re: ERJasperReports: how to perform an operation with the generated file?
- From: Flavio Donadio <email@hidden>
- Date: Mon, 20 Feb 2017 11:17:58 -0300
Sorry for the noise. The answer was right in front of me.
I need to create an ERXNextPageForResultWOAction subclass — just like the FileTaskDownloadController I am using now —, send the e-mail in performAction(), then return a page to the user with the success or error message. This controller can be passed to CCAjaxLongResponse.
Can’t believe I spent the whole weekend looking for this!
Cheers,
Flavio
> On 20 Feb 2017, at 11:07, Flavio Donadio <email@hidden> wrote:
>
> Hello, all!
>
>
> In my D2W app, I have a button (in the list page for an entity) that the user can click to download that list in PDF format, generated with ERJasperReports. I use a CCAjaxLongResponsePage, just like the demo (https://github.com/wocommunity/wonder/blob/master/Examples/Reporting/ERJasperReportsExample/Sources/er/jrexample/components/Main.java) and everything works fine.
>
> Now, I don’t want the user to download the file anymore, but to have the file sent through e-mail. I tried call()'ing the Callable<File> to get the file and send it, but the task takes too long and the request times out (some really strange things happen). Then I tried some “LongResponse" classes, but only CCAjaxLongResponsePage can deal with a task and I can’t find a way to get the file from that component...
>
> I’m lost. Can someone point me in the right direction?
>
>
> Cheers,
> Flavio
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden