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
import org.eclipse.birt.data.engine.api.IBinding;
import org.eclipse.birt.data.engine.api.IExpressionCollection;
import org.eclipse.birt.data.engine.api.IConditionalExpression;
import org.eclipse.birt.data.engine.api.IScriptExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.olap.data.api.DimLevel;
import org.mozilla.javascript.CompilerEnvirons;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Node;
import org.mozilla.javascript.Parser;
import org.mozilla.javascript.ScriptOrFnNode;
import org.mozilla.javascript.Token;
/**
 * 
 */
public class OlapExpressionCompiler
{
	/**
	 * Get referenced Script Object (dimension, data, measure, etc) according to
	 * given object name.
	 * 
	 * @param expr
	 * @param objectName
	 * @return
	 */
	public static String getReferencedScriptObject( IBaseExpression expr,
			String objectName )
	{
		if ( expr instanceof IScriptExpression )
		{