Bug 201235 Display text from multi-select parameter is wrong.[0705][0002]
Description: Display text from multi-select parameter is wrong. Build number:2.2.1.v20070827 Steps to reproduce: 1. 1. New a report parameter p1, listbox. 2. Add values like DisplayText/Value v1/1 v2/2. 3. Insert a data item to Layout, Input expression as params["p1"].displayText[0] 4. Preview and select one value, click OK. Expected result: For multi-select parameter, return null for display text or some correct value. Actual result: Display "v" Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/BirtUtility.java
String errorId = "document.getElementById('error_detail')"; 
		String errorIcon = "document.getElementById('error_icon')"; 
		String onClick = "if (" + errorId + ".style.display == 'none') { " 
				+ errorIcon + ".innerHTML = '- '; " + errorId 
				+ ".style.display = 'block'; }" + "else { " + errorIcon 
				+ ".innerHTML = '+ '; " + errorId 
				+ ".style.display = 'none'; }"; 
		message += "<div id=\"birt_errorPage\" style=\"color:red\">\n"; 
		message += "<span id=\"error_icon\"  style=\"cursor:pointer\" onclick=\"" 
				+ onClick + "\" > + </span>\n"; 
		String errorMessage = null;
		if ( e instanceof AxisFault )
		{
			errorMessage = ( (AxisFault) e ).getFaultString( );
		}
		else
		{
			errorMessage = e.getLocalizedMessage( );
		}
		if ( errorMessage != null )
		{
			message += ParameterAccessor.htmlEncode( new String( errorMessage
					.getBytes( "ISO-8859-1" ), "UTF-8" ) ); 
		}
		else
		{
			message += "Unknown error!"; 
		}
		message += "<br>\n"; 
		message += "<pre id=\"error_detail\" style=\"display:none;\" >\n";