Thanks for your opinion!!!
I think this is the best solution.

-----Original Message----- From: Lei Wu
Sent: Thursday, January 9, 2014 9:27 AM
To: [email protected]
Subject: Re: Creating a report and a backup copy

Fitini,

First thing popped in to my head is a work-around , that is , before
presenting the view of report in your browser, you could make it copied to
your specified location in your file system by invoking a service which
will do the automatic backup copy work.

In your request map, add an event to invoke a service
<request-map uri="Print.pdf">
       <description>Print in PDF.</description>
       <security https="true" auth="true" />
#LEI: <event type="service" invoke="copyReport"/>
       <response name="error" type="error"/>
       <response name="success" type="view" value="PrintPDF" />
</request-map>

And in your sevicedef/services.xml, define a java service with name
copyReport, with proper IN/OUT parameters declaration.
All things left to do is to implement this java service by writing a static
java method with the report copying logic.

Apparently, this is not the best solution, hope it helps though.


On Tue, Jan 7, 2014 at 11:43 PM, <[email protected]> wrote:

Hi, i’m tryng to generate some report with Birt, the following lines are a
representation of my work.

link that call the request-map “Print.pdf”

<request-map uri="Print.pdf">
        <description>Print in PDF.</description>
        <security https="true" auth="true" />
        <response name="error" type="error"/>
        <response name="success" type="view" value="PrintPDF" />
    </request-map>

  <view-map name="PrintPDF" type="birt"
page="component://*/webapp/*/reports/myReport.rptdesign"
content-type="application/pdf" />

So, i’ve a preview (in PDF mode) in my browser of the “report” and i can
save it manually.

Now, i want to save this report generates ‘automatically’, in a specify
path of my server. How can do it?? Any suggestion?
This is necessary in my case, to have a backup copy in my server, of the
report i’ve just watched.

Can anyone help me?
Thanks




Reply via email to