Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Getting display text choices from multiple list box
Getting display text choices from multiple list box [message #362325] Thu, 08 May 2008 06: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
Previous Topic:callback from report-engine
Next Topic:Cannot create Data Set to MySQL
Goto Forum:
  


Current Time: Thu Aug 28 01:36:07 EDT 2014

Powered by FUDForum. Page generated in 0.23135 seconds