Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » dynamic parameter based on Scripted data set
dynamic parameter based on Scripted data set [message #1052009] Mon, 29 April 2013 10:01 Go to next message
Jaroslav Uher is currently offline Jaroslav Uher
Messages: 17
Registered: July 2009
Junior Member
Hi, I have scripted data set which define one of parameters for report -
based on array containing parameter name, description and SQL modifier
for main query.

Scripted data set is working and is usable in layout.

How to populate parameter from scripted data set?

Thanks
Jaroslav
Re: dynamic parameter based on Scripted data set [message #1053193 is a reply to message #1052009] Fri, 03 May 2013 00:59 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

If you define the data in the open method of the dataSet, it'll work. In the example you posted, if you move the script from the initialize method to the open method, it populates the parameter.

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit
Re: dynamic parameter based on Scripted data set [message #1053264 is a reply to message #1053193] Fri, 03 May 2013 08:54 Go to previous message
Jaroslav Uher is currently offline Jaroslav Uher
Messages: 17
Registered: July 2009
Junior Member
Thanks Michael, you are right. Currently I have located data on both
places; I need it for
1) populate parameter (array located in "on open" method of parameter
dataset)
2) use for modifying SQL in another dataset / beforeOpen (array located
in "initialize" method)
3) use for displaying of descriptive text of parameter (array located in
"initialize" method )

(Not mentioned in example report, my parameter is multi-select)

Exists concept to have array on one place (not in external file)?

Regards
Jaroslav





Dne 3.5.2013 6:59, Michael Williams napsal(a):
> If you define the data in the open method of the dataSet, it'll work.
> In the example you posted, if you move the script from the initialize
> method to the open method, it populates the parameter.
Previous Topic:Group data on same line as detail data - How to?
Next Topic:Unknown : Column number ?
Goto Forum:
  


Current Time: Fri Apr 25 02:48:55 EDT 2014

Powered by FUDForum. Page generated in 0.05653 seconds