Bug 211833 [Regression]Can not select Measures in Crosstab's Group Level filter
Description: [Regression]Can not select Measures in Crosstab's Group Level filter Build number: 2.3.0.v20071204-0800 Steps to reproduce: 1, New a crosstab 2, New a Group level filter on crosstab 3, Select Measure in Filter Condition Expected result: The measures of crosstab should be in the list Actual result: The Measures are empty
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/util/OlapQueryUtil.java
import org.eclipse.birt.data.engine.olap.api.query.IMeasureDefinition;
import org.eclipse.birt.data.engine.olap.data.api.DimLevel;
import org.eclipse.birt.data.engine.script.ScriptConstants;
/**
 * 
 */
public class OlapQueryUtil
{
	/**
	 * Valid bindings, return a list of invalid binding.
	 * 
	 * @param queryDefn
	 * @param suppressException
	 * @return
	 * @throws DataException
	 */
	public static List validateBinding( ICubeQueryDefinition queryDefn, boolean suppressException ) throws DataException
	{
		List result = new ArrayList();
		Set validMeasures = new HashSet();
		for( int i = 0; i < queryDefn.getMeasures( ).size( ); i++ )
		{
			IMeasureDefinition measure = (IMeasureDefinition) queryDefn.getMeasures( ).get( i );
			validMeasures.add( measure.getName( ) );
		}
		
		Set validDimLevels = new HashSet();
		populateLevel( queryDefn, validDimLevels, ICubeQueryDefinition.COLUMN_EDGE );
		populateLevel( queryDefn, validDimLevels, ICubeQueryDefinition.ROW_EDGE );