Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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.
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
Eclipse UserFriend
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: Tue Apr 29 06:56:41 EDT 2025

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

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

Back to the top