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 17:31 Go to next message
Shine is currently offline Shine
Messages: 4
Registered: November 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 18:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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] Wed, 08 December 2010 19:09 Go to previous message
Shine is currently offline Shine
Messages: 4
Registered: November 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: Thu Aug 21 22:06:01 EDT 2014

Powered by FUDForum. Page generated in 0.01530 seconds