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 14:01 Go to next message
Jaroslav Uher is currently offline Jaroslav UherFriend
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 04:59 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1687
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

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: dynamic parameter based on Scripted data set [message #1053264 is a reply to message #1053193] Fri, 03 May 2013 12:54 Go to previous message
Jaroslav Uher is currently offline Jaroslav UherFriend
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: Mon Dec 22 13:36:02 GMT 2014

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

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