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/src/org/eclipse/birt/report/data/adapter/impl/CubeQueryUtil.java
/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.report.data.adapter.api.DataRequestSession#getReferencedLevels(java.lang.String, java.lang.String, org.eclipse.birt.data.engine.olap.api.query.ICubeQueryDefinition)
	 */
	public List getReferencedLevels( String targetLevel,
			String bindingExpr, ICubeQueryDefinition queryDefn ) throws AdapterException
	{
		try
		{
			List result = new ArrayList();
			DimLevel target = OlapExpressionUtil.getTargetDimLevel( targetLevel );
			
			String bindingName = OlapExpressionCompiler.getReferencedScriptObject( bindingExpr, "data" );
			if( bindingName == null )
				return result;
			IBinding binding = null;
			List bindings = queryDefn.getBindings( );
			for( int i = 0; i < bindings.size( ); i++ )
			{
				IBinding bd = (IBinding)bindings.get( i );
				if( bd.getBindingName( ).equals( bindingName ))
				{
					binding = bd;
					break;
				}
			}
			
			if( binding == null )
			{
				return result;