Property binding and dynamic paramaters [message #965929] |
Wed, 31 October 2012 12:16  |
Eclipse User |
|
|
|
Hi everybody,
I have a small problem with reports.
As I need to provide different databases for different stages (development, testing, production) I configured my data source dynamically using the „property binding" to set the db-host, password and user.
e.g.
"jdbc:mysql://"+params["host"].value+":3306/mmmreporting?blobSendChunkSize=1000000"
This allows me to pass a parameter which sets the correct values for the stage. This works for most of my reports.
But in some reports I also need to add dynamic parameters, which is filled by of data from the db and provides a dropdown box for the user to select certain kind of information.
I run into the problem, that this drop down menu is always empty. I far as I can see this happens because the paramters for the database are not set when the dialog is opened, so the query for the drop down menu data fails.
Is there somethign I can do to bring up the data in the drop down box even if I am using the property binding to set the value for the db connection?
Thanks in advance.
Cheers,
Martin
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds