Bug 197765 Static level display will be affected by display field in dynamic[1101]
Description: Static level display will be affected by display field set previously in dynamic Build number:2.2.1.v20070725 Steps to reproduce: 1. Open attached report. (In the report. CUSTOMERNUMBER level in cube is dynamic level at first and I set CUSTOMERNAME as display field, then I change it to static. 2. Preview. Expected result: Display static level in column area with the specified value in static level definition. Actual result: Display static level with CUSTOMAME value. Error log:n/a
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
try
		{
			List measureGroups = cubeHandle.getContents( CubeHandle.MEASURE_GROUPS_PROP );
			for ( int i = 0; i < measureGroups.size( ); i++ )
			{
				MeasureGroupHandle mgh = (MeasureGroupHandle) measureGroups.get( i );
				List measures = mgh.getContents( MeasureGroupHandle.MEASURES_PROP );
				for ( int j = 0; j < measures.size( ); j++ )
				{
					MeasureHandle measure = (MeasureHandle) measures.get( j );
					String function = measure.getFunction( );
					if ( query.getGroups( ).size( ) > 0 )
					{
						Binding binding = new Binding( measure.getName( ),
								new ScriptExpression( measure.getMeasureExpression( ) ) );
						binding.setAggrFunction( DataAdapterUtil.adaptModelAggregationType( function ) );
						IGroupDefinition group = (IGroupDefinition) query.getGroups( )
								.get( query.getGroups( ).size( ) - 1 );
						binding.addAggregateOn( group.getName( ) );
						query.addBinding( binding );
					}
					else
					{
						query.addBinding( new Binding( measure.getName( ),
								new ScriptExpression( measure.getMeasureExpression( ) ) ) );
					}
					ColumnMeta meta = new ColumnMeta( measure.getName( ),
							null,
							ColumnMeta.MEASURE_TYPE );
					meta.setDataType( DataAdapterUtil.adaptModelDataType( measure.getDataType( ) ) );