Bug 163770 [Smoke]Error in parameter dialog when preview dynamic parameter
Description: Error in parameter dialog when preview a report containing dynamic parameter. Build: 20061108 Steps to reproduce: 1. New data source and dataset 2. New a dynamic parameter based on the dataset. 3. Preview the report expected result: Correct parameter dialog. Actuaul result: See attached screen shot
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/GetParameterDefinitionTask.java
}
		for ( int i = 0; i < groupKeyValues.length; i++ )
		{
			String parameterName = (( ScalarParameterHandle ) slotHandle.get( i )).getName( );
			setParameterValue( parameterName, groupKeyValues[ i ] );
		}
		ScalarParameterHandle requestedParam = (ScalarParameterHandle) slotHandle
				.get( groupKeyValues.length ); 
		
		
		if ( requestedParam == null )
		{
			return Collections.EMPTY_LIST;
		}
		return this.getSelectionList( requestedParam.getName( ) );
	}
	private Collection getChoicesFromParameterGroup( ScalarParameterHandle parameter, Object[] groupKeyValues )
	{
		assert isCascadingParameter( parameter );
		CascadingParameterGroupHandle parameterGroup = getCascadingGroup( parameter );
		String parameterGroupName = parameterGroup.getName( );
			evaluateQuery( parameterGroupName );
		IResultIterator iter = (IResultIterator) dataCache.get( parameterGroupName );
		if ( iter == null )
		{
			evaluateQuery( parameterGroupName );
			if ( iter == null )
			{
				return Collections.EMPTY_LIST;
			}