Bug 209451 Default value for Cascading parameter lost.[0705]
Description: Default value for Cascading parameter lost. Build number:2.3.0.v20071112 Steps to reproduce: 1. New sample data source and dataset from CUSTOMERS. 2. New a cascading parameter from COUNTRY, STATE, set default value as USA and CA. 3. Preview. 4. Select other country and then back to USA, check values in state. Expected result: CA in state value list. Actual result: No item for 'CA' Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetCascadeParameterActionHandler.java
SelectItemChoice[] selectionList = new SelectItemChoice[list.size( )];
		for ( int i = 0; i < list.size( ); i++ )
		{
			SelectItemChoice item = (SelectItemChoice) list.get( i );
			selectionList[i] = new SelectItemChoice( item.getValue( ), item
					.getLabel( ) );
		}
		return selectionList;
	}
	private Map getParameterSelectionLists( IViewerReportDesignHandle design,
			Map params, InputOptions options, ViewerAttributeBean attrBean )
			throws ReportServiceException
	{
		if ( params == null || params.size( ) == 0 )
			return new HashMap( );
		List paramList = null;
		Map ret = new HashMap( );
		List remainingParamNames = new ArrayList( );
		String firstName = (String) params.keySet( ).iterator( ).next( );
		
		Collection paramDefs = attrBean.getParameterDefList( );
		ParameterDefinition paramDef = null;
		for ( Iterator it = paramDefs.iterator( ); it.hasNext( ); )
		{
			ParameterDefinition temp = (ParameterDefinition) it.next( );
			if ( temp.getName( ).equals( firstName ) )
			{
				paramDef = temp;
				break;
			}