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
import org.eclipse.birt.data.engine.api.querydefn.Binding;
import org.eclipse.birt.data.engine.api.querydefn.ScriptExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.olap.api.query.ICubeQueryDefinition;
import org.eclipse.birt.data.engine.olap.api.query.IDimensionDefinition;
import org.eclipse.birt.data.engine.olap.api.query.IEdgeDefinition;
import org.eclipse.birt.data.engine.olap.api.query.IHierarchyDefinition;
import org.eclipse.birt.data.engine.olap.api.query.ILevelDefinition;
import org.eclipse.birt.data.engine.olap.impl.query.CubeQueryDefinition;
import org.eclipse.birt.report.data.adapter.api.AdapterException;
import org.eclipse.birt.report.data.adapter.api.DataRequestSession;
import org.eclipse.birt.report.data.adapter.api.DataSessionContext;
import org.eclipse.birt.report.data.adapter.api.IBindingMetaInfo;
import org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl;
/**
 * 
 */
public class DataRequestSessionTest extends TestCase
{
	private DataRequestSession session = null;
	
	public void setUp() throws BirtException
	{
		this.session = new DataRequestSessionImpl( new DataSessionContext(DataEngineContext.DIRECT_PRESENTATION));
	}
	
	public void testGetReferableBindings( ) throws AdapterException, DataException
	{
		IBinding binding1 = new Binding( "b1", new ScriptExpression("dimension[\"dim1\"][\"level1\"]"));
		int type1 = IBindingMetaInfo.DIMENSION_TYPE;