Getting display text choices from multiple list box [message #362325] |
Thu, 08 May 2008 10:34 |
Eclipse User |
|
|
|
Originally posted by: jake.wilson.hsbcib.com
Hi,
I'm using Birt 2.2.1.
I'm trying to get hold of selected 'Display Text' on a Report Parameter
multiple List-Box, for display in the results page.
I'm able to print out the selected 'values' in a Label, using the
following:
***************************************
function formatListDisplayParams(paramsArray) {
var queryStr="";
for (var index = 0; index < paramsArray.length; index++) {
queryStr = queryStr.concat(paramsArray[index] + ", ");
}
queryStr = queryStr.substr(0, queryStr.length - 2);
return queryStr;
}
var exceptionType = params["Exception"].value;
var selectedExceptions = formatListDisplayParams(exceptionType);
this.text = selectedExceptions;
********************************************
This does not seem to work with the 'displayText' property.
eg. var exceptionType = params["Exception"].displayText;
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.01727 seconds