Bug 177296 Redundant Values are added to parameter list in preview mode.[0705]
Description: Redundant Values are added to parameter list in preview mode. Build number:2.2.0.v20070312 Steps to reproduce: 1. Open attached report. 2. Preview. 3. Select datetime value and click OK. 4. Click Show Report Parameters button, check values Expected result: Values are unchanged and only one datetime value in list. Actual result: Two same datetime values in list.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetCascadeParameterActionHandler.java
.getLocale( ) );
				}
				if ( label != null )
				{
					SelectItemChoice selectItemChoice = new SelectItemChoice( );
					selectItemChoice.setLabel( label );
					selectItemChoice.setValue( displayValue );
					selectionList.add( index++, selectItemChoice );
				}
			}
		}
		return selectionList;
	}
	protected void handleUpdate( CascadeParameter cascadeParameter )
	{
		Data data = new Data( );
		data.setCascadeParameter( cascadeParameter );
		UpdateData updateData = new UpdateData( );
		updateData.setTarget( "birtParameterDialog" ); 
		updateData.setData( data );
		Update update = new Update( );
		update.setUpdateData( updateData );
		response.setUpdate( new Update[]{update} );
	}
	protected IViewerReportService getReportService( )
	{
		return BirtReportServiceFactory.getReportService( );
	}
}