Bug 211015 The XTab can be preview after remove its measure's binding[1102]
Description: I created a crosstab and for my mistaken step I remove the measure's binding. But preview is ok. At this time I don't know my measure's binding is gone. After that I want specify a filter on measure. But I can not found the measure in the selecting list. Build number: 2.3.0.v20071127-1036 Steps to reproduce: 1, New a Crosstab with levels and measures 2, Delete all the bindings of measure 3, Preview the crosstab Expected result: The preview should be failed. Actual result: The preview is ok, and all the measures are in the results
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeCursorImpl.java
{	
	private CubeCursor cursor;
	private Scriptable scope;
	private ICubeQueryDefinition queryDefn;
	private HashMap bindingMap, dataTypeMap;
	
	public CubeCursorImpl ( CubeCursor cursor, Scriptable scope, ICubeQueryDefinition queryDefn ) throws DataException
	{
		this.cursor = cursor;
		this.scope = scope;
		this.queryDefn = queryDefn;
		
		OlapQueryUtil.validateBinding( queryDefn, false );
		
		this.bindingMap = new HashMap( );
		this.dataTypeMap = new HashMap( );
		for ( int i = 0; i < this.queryDefn.getBindings( ).size( ); i++ )
		{
			IBinding binding = (IBinding) this.queryDefn.getBindings( ).get( i );
			if ( binding.getAggrFunction( ) == null )
			{
				this.bindingMap.put( binding.getBindingName( ),
						binding.getExpression( ) );
				OLAPExpressionCompiler.compile( binding.getExpression( ) );