Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » params["parameterName"].displayText returns "null"
params["parameterName"].displayText returns "null" [message #1822693] Wed, 11 March 2020 14:24 Go to next message
Steve Dorty is currently offline Steve DortyFriend
Messages: 2
Registered: March 2019
Junior Member
I have a report in which I am needing to display a parameter in the header.

The parameter is a dynamic list box allowing multiple selections. Multi-dimensional array?

Placing a dynamic text box in my report header with the following expression results in "null" being output when it is, in fact, not null:

params["parameterName"].displayText
Using the following code produces numeric output (as expected)

params["parameterName"].value
How can I display the actual associated text(s) of the parameter selection(s) made at run-time?
Re: params["parameterName"].displayText returns "null" [message #1822883 is a reply to message #1822693] Mon, 16 March 2020 10:45 Go to previous message
dmitry khotsko is currently offline dmitry khotskoFriend
Messages: 38
Registered: March 2020
Member
hi. I think I can help you.
look:
1. you create a new parameter. and dont fill fields (in example I created ListBox)
2. you need to create scripts to your parameter example getSelectionValueList and getDefaultValueList
getSelectionValueList script
var arr =[]
arr[0]=1
arr[1]=2
arr[2]=3
arr[3]=4
arr;

getDefaultValueList(not required)
var arr = []
arr[0]=1

and now you can get your parameter but you must remember than you get object
in any script you can get parameter
something like this:
params["new"].value[0]
write me if you need help

Previous Topic:LTR unicode (\u200E) get print in pdf
Next Topic:Display Values in single row instead of multiple rows
Goto Forum:
  


Current Time: Fri Apr 26 00:31:49 GMT 2024

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

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

Back to the top