Bug 210357 Can not get sorting key if xtab has a count aggregation binding[1102]
Description: Can not get sorting key if xtab has a count aggregation binding. The filter got the same issue. Build number: 2.3.0.v20071120-0800 Steps to reproduce: 1, New a Cube 2, New a crosstab using the cube 3, Add a aggregation binding on crosstab and select the function to COUNT, leave the datafield empty 4, after step3, goto sort page and add a sorting Expected result: User can get the sorting keys Actual result: The sorting key list is empty and the filter has the same issue
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/util/OlapExpressionCompiler.java
{
			Set result = new HashSet( );
			IScriptExpression expr1 = ( (IConditionalExpression) expr ).getExpression( );
			result.addAll( getReferencedDimLevel( expr1,
					bindings,
					onlyFromDirectReferenceExpr ) );
			IBaseExpression op1 = ( (IConditionalExpression) expr ).getOperand1( );
			if ( op1 != null )
				result.addAll( getReferencedDimLevel( op1,
						bindings,
						onlyFromDirectReferenceExpr ) );
			IBaseExpression op2 = ( (IConditionalExpression) expr ).getOperand2( );
			if ( op2 != null )
				result.addAll( getReferencedDimLevel( op2,
						bindings,
						onlyFromDirectReferenceExpr ) );
			return result;
		}
		else if ( expr instanceof IExpressionCollection )
		{
			Set result = new HashSet( );
			Object[] ops = ( (IExpressionCollection) expr ).getExpressions( ).toArray( );
			for ( int i = 0; i < ops.length; i++ )
			{
				result.addAll( getReferencedDimLevel( (IBaseExpression)ops[i],
						bindings,
						onlyFromDirectReferenceExpr ) );
			}
			return result;
		}