Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Save a rptdocument during a report is ran
Save a rptdocument during a report is ran [message #725753] Thu, 15 September 2011 16:54 Go to next message
RWIL Mising name is currently offline RWIL Mising name
Messages: 28
Registered: February 2011
Junior Member
Hi,

We would like to save the .rptdocument for each report ran through the birtviewer. The main idea is : whatever the output format requested by the user is, we would like to keep the corresponding .rptdocument stored somewhere on our server.

Is there any API that can be put inside the .rptdesign to save the corresponding .rptdocument each time the .rptdesign is run ?

The fact of running a report is creating a .rptdocument on a "temp-like" folder on the birtviewer site, but this .rptdocument is temporary and is being removed after a while. We would like to store it permanently somewhere.

Any idea ?

Kind regards

RWIL
Re: Save a rptdocument during a report is ran [message #726134 is a reply to message #725753] Fri, 16 September 2011 16:07 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Why not use the __document url parameter? You can specify a folder
location that is not temp. You could also add a script in the
beforeRender that makes a copy of the document, just remember that the
beforeRender is called every time a page is rendered in the viewer.
Just use standard file io and get the report document name and location
using:
reportContext.getHttpServletRequest().getAttribute("attributeBean").getReportDocumentName();

Jason

On 9/15/2011 12:54 PM, RWIL wrote:
> Hi,
>
> We would like to save the .rptdocument for each report ran through the
> birtviewer. The main idea is : whatever the output format requested by
> the user is, we would like to keep the corresponding .rptdocument stored
> somewhere on our server.
>
> Is there any API that can be put inside the .rptdesign to save the
> corresponding .rptdocument each time the .rptdesign is run ?
>
> The fact of running a report is creating a .rptdocument on a "temp-like"
> folder on the birtviewer site, but this .rptdocument is temporary and is
> being removed after a while. We would like to store it permanently
> somewhere.
>
> Any idea ?
>
> Kind regards
>
> RWIL
Previous Topic:Redirecting BIRT Response to 404
Next Topic:BIRT issue in websphere (Cannot process the org.eclipse.birt.report.data.oda)
Goto Forum:
  


Current Time: Fri Oct 24 13:40:02 GMT 2014

Powered by FUDForum. Page generated in 0.21055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software