Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Report viewer, get user input and a dynamic list
Report viewer, get user input and a dynamic list [message #716590] Wed, 17 August 2011 19:19 Go to next message
Tim Ames is currently offline Tim AmesFriend
Messages: 7
Registered: August 2011
Junior Member
I am evaluating the report viewer and using that to get report parameter values from the user. One of them is a combo box list of choices that is populated via a database table.

In the report design file, I am using the beforeOpen event of the Data Source to run a global function (defined in initialize event) to set the url string, etc. for the database connection string.

This works great for the report generation. However, in the report viewer for user input, when it shows the choices in the combo box, it appears that the database url,etc are NOT being replaced in the Data Source. Is there a different place/event that I need to hook into with the report viewer so that the initialize and beforeOpen events fire before the combo box is rendered? It is using the default odaURL, etc. that is defined in the XML.

Thanks for any insight.
Re: Report viewer, get user input and a dynamic list [message #716608 is a reply to message #716590] Wed, 17 August 2011 20:34 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

When the viewer builds the viewer the initialize event does not fire,
but the beforeOpen event on the datasouce should fire.

Jason

On 8/17/2011 3:19 PM, Tim Ames wrote:
> I am evaluating the report viewer and using that to get report parameter
> values from the user. One of them is a combo box list of choices that is
> populated via a database table.
>
> In the report design file, I am using the beforeOpen event of the Data
> Source to run a global function (defined in initialize event) to set the
> url string, etc. for the database connection string.
>
> This works great for the report generation. However, in the report
> viewer for user input, when it shows the choices in the combo box, it
> appears that the database url,etc are NOT being replaced in the Data
> Source. Is there a different place/event that I need to hook into with
> the report viewer so that the initialize and beforeOpen events fire
> before the combo box is rendered? It is using the default odaURL, etc.
> that is defined in the XML.
>
> Thanks for any insight.
Previous Topic:layout horizontal / vertical
Next Topic:BIRT log files
Goto Forum:
  


Current Time: Thu Mar 28 18:43:08 GMT 2024

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

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

Back to the top