Bug 178682 value changing in cascading parameter group
let's say i have a cascading parameter group (single or multiple dataset) with three parameters like: Country State City the user can run reports over all countries, all states in a country, all cities in a certain state of a country or a certain city. so when the user starts the report, it should look like this Country: ALL State: ALL City: ALL the problem is now when i select a country, the first entry in the state listbox will be empty, like: Country: USA State: "" City: ALL i'd like that in the state listbox the default ("ALL") entry still is selected. (could also be the first entry in the state column, doesn't matter. but it definately shouldn't be blank.) i discussed this issue with Jason Weathersby. he suggested that i would edit the ComboBoxParameterFragment.jsp file in the WebViewer and delete the following fragment: if( parameterBean.isCascade( ) || parameterBean.allowBlank( ) ) { %> <OPTION></OPTION> <% } (you are only able to view a changed behaviour in the webviewerexample deployed on tomcat. you can't see any change of behaviour in the designer preview.) what happened then was: At start (i set the default values for the parameters in the cascading parameter group to "ALL"): Country: ALL State: ALL City: ALL After i select the Country: Country: USA State: AL <- it selected automatically the first entry from the state column City: <- blank! what i need is that it shows either the default value of the city (which would be "ALL") or the first entry of the cities in the state of "AL".
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ParamDefTag.java
writer
					.write( "if( displayCtl ) displayCtl.name = \"" + displayTextName + "\";\n" ); 
			writer
					.write( "if( displayCtl ) displayCtl.value = inputCtl.value;\n" ); 
			writer
					.write( "var nullCtl = document.getElementById(\"" + nullValueId + "\");\n" ); 
			writer.write( "if( nullCtl ) nullCtl.name='';\n" ); 
			writer
					.write( "var localeCtl = document.getElementById(\"" + isLocaleId + "\");\n" ); 
			writer
					.write( "if( localeCtl ) localeCtl.name = \"" + ParameterAccessor.PARAM_ISLOCALE + "\";\n" ); 
			writer.write( "}\n" ); 
			writer.write( "function changeTextParam" + encParamId + "( )\n" ); 
			writer.write( "{\n" ); 
			writer
					.write( "var patternCtl = document.getElementById(\"" + patternId + "\");\n" ); 
			writer
					.write( "if( patternCtl ) patternCtl.name = \"" + patternName + "\";\n" ); 
			writer.write( "  handleTextParam" + encParamId + "( );\n" ); 		
			writer.write( "}\n" ); 
			writer.write( "</script>\n" ); 
		}
		
		writer.write( "\n<script language=\"JavaScript\">\n" ); 
		writer.write( "function handleParam" + encParamId + "( option )\n" ); 
		writer.write( "{\n" ); 
		writer.write( "if( !option ) return;\n" ); 
		writer.write( "var valCtl = document.getElementById(\"" + valueId 
				+ "\");\n" ); 
		writer.write( "var displayCtl = document.getElementById(\""