Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Unable to access selected values of a ListBox type parameter
icon5.gif  Unable to access selected values of a ListBox type parameter [message #643984] Wed, 08 December 2010 22:31 Go to next message
Shine is currently offline ShineFriend
Messages: 4
Registered: December 2010
Junior Member
Hi,
I have a report which has a parameter of data type 'String' and Display type 'List Box'. It can accept multiple values. Is there any way that I can access the selected values of the ListBox in the expression of a dynamic textbox that I have to add to the report?

Any help would be appreciated. Thank you.
Re: Unable to access selected values of a ListBox type parameter [message #643989 is a reply to message #643984] Wed, 08 December 2010 23:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You can get the number of selected items like:
params["MultiParm"].length
and you can get the individual ones like

params["MultiParm"].value[0];
params["MultiParm"].value[1];
...


Jason

On 12/8/2010 5:31 PM, shinejose22@gmail.com wrote:
> Hi,
> I have a report which has a parameter of data type 'String' and Display
> type 'List Box'. It can accept multiple values. Is there any way that I
> can access the selected values of the ListBox in the expression of a
> dynamic textbox that I have to add to the report?
>
> Any help would be appreciated. Thank you.
Re: Unable to access selected values of a ListBox type parameter [message #643993 is a reply to message #643984] Thu, 09 December 2010 00:09 Go to previous message
Shine is currently offline ShineFriend
Messages: 4
Registered: December 2010
Junior Member
Thanks a lot Jason for youir help. That worked for me.
Previous Topic:PermGen Space Error running BIRT reports
Next Topic:IF-Else formula
Goto Forum:
  


Current Time: Fri Nov 28 01:42:02 GMT 2014

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

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