Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Report viewer on Tomcat(Multi users running same report)
Report viewer on Tomcat [message #898606] Thu, 26 July 2012 21:02 Go to next message
Dave C is currently offline Dave C
Messages: 3
Registered: July 2012
Junior Member
Hello!

I'm hoping this is an easy question!

We have the BIRT viewer running with tomcat and I've made a simple report that uses a XML file as its data set.

I was imagining we'd use a third party application to generate the XML file the report would use as its data set. This works out with a single user because it doesn't matter if the file is over-written each time they want to view the report with "new" data. However, we don't need a report only one person can run, we will have multiple making use of this report, possibly at the same time.

As far as I know, our tomcat server will not have access to our databases thus the need for the source XML file.

Is it possible to create a birt report that can be run by multiple users, simultaneously that uses a passed XML file as the source for its data?


Any help is greatly appreciated!


Dave
Re: Report viewer on Tomcat [message #898632 is a reply to message #898606] Thu, 26 July 2012 22:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Dave,

Sure you can do this. There are several ways this can be done, using a
little script to change the file name, pass in an xml stream, or use
property binding. Look at the attached screenshot. Notice the fx
button on the image labeled 2. The expression is represented in image
3. In this case I am looking in a report directory, but I could have
deleted this entire expression and just selected a string parameter that
you pass in to the report as well.

Jason

On 7/26/2012 5:02 PM, Dave C wrote:
> Hello!
> I'm hoping this is an easy question!
> We have the BIRT viewer running with tomcat and I've made a simple
> report that uses a XML file as its data set.
> I was imagining we'd use a third party application to generate the XML
> file the report would use as its data set. This works out with a single
> user because it doesn't matter if the file is over-written each time
> they want to view the report with "new" data. However, we don't need a
> report only one person can run, we will have multiple making use of this
> report, possibly at the same time.
> As far as I know, our tomcat server will not have access to our
> databases thus the need for the source XML file.
> Is it possible to create a birt report that can be run by multiple
> users, simultaneously that uses a passed XML file as the source for its
> data?
>
> Any help is greatly appreciated!
>
> Dave
Re: Report viewer on Tomcat [message #898741 is a reply to message #898632] Fri, 27 July 2012 12:18 Go to previous message
Dave C is currently offline Dave C
Messages: 3
Registered: July 2012
Junior Member
Perfect! Thanks so much for your help!
Previous Topic:Being Prompted for Parameters Again After Choosing to Print
Next Topic:Handling the BIRT Report large amount of Data
Goto Forum:
  


Current Time: Thu Sep 18 23:56:37 GMT 2014

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

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