Bug 201527 The cross grandtotal should be in the Grand Total list in "Filter by" tree[1102]
Description: The cross grandtotal should be in the Grand Total list in "Filter by" tree[1102] Build number: 2.2.0.v20070829-0630 Steps to reproduce: 1, New a crosstab has row dimension and column dimension 2, Specify row and column grandtotals 3, Create a filter on crosstab 4, Check the Filter by list of filter condition Expected result: The cross grandtotal(Aggregate On: All) should be in the Grand Total list but not in the Measures list Actual result: The cross grandtotal is in the Measures list
data/org.eclipse.birt.report.data.adapter/test/org/eclipse/birt/report/data/adapter/internal/script/DataRequestSessionTest.java
query.addBinding( binding10 );
		List l5 = this.session.getCubeQueryUtil( ).getReferableBindings( targetLevel5, query, false );
		assertTrue( l5.size( )==4 );
		assertTrue( contains( l5, binding7, type7 ));
		assertTrue( contains( l5, binding71, type71 ));
		assertTrue( contains( l5, binding8, type8 ));
		assertTrue( contains( l5, binding10, type10 ));
	}
	
	/**
	 * 
	 * @param l
	 * @param binding
	 * @param type
	 * @return
	 * @throws DataException
	 */
	private boolean contains ( List l, IBinding binding, int type ) throws DataException
	{
		for( int i = 0; i < l.size( ); i++ )
		{
			IBindingMetaInfo bm = (IBindingMetaInfo)l.get( i );
			if( bm.getBindingName( ).equals( binding.getBindingName( ) ) && bm.getBindingType( ) == type )
				return true;
		}
		return false;
	}
	
	public void testGetReferencedLevels() throws DataException, AdapterException
	{