Bug 145022 Provide a utility method to help GUI enhance aggregate on.
DtE will provide a method hasAggregation(String expression) in org.eclipse.birt.core.data.ExpressionUtil, and the return value will be true when the expression is a valid JS expression and it has aggregation defined.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/ExpressionParserUtility.java
return;
			if ( "_outer".equals( rowColumn.getString( ) ) )
			{
				outer_count++;
				Node outer_Node = refNode.getNext( );
				Node before_Node = outer_Node;
				while ( outer_Node != null
						&& outer_Node.getString( ) != null
						&&  "_outer".equals( outer_Node.getString( ) ) )
				{
					outer_count++;
					before_Node = outer_Node;
					outer_Node = outer_Node.getNext( );
				}
				ColumnBinding info = new ColumnBinding( before_Node.getString( ),
						"",
						outer_count );
				columnExprList.add( info );
				return;
			}
			ColumnBinding binding = new ColumnBinding( rowColumn.getString( ),
					DATASETROW_INDICATOR
							+ "[\"" + rowColumn.getString( ) + "\"]" );
			columnExprList.add( binding );
		}
		if ( refNode.getType( ) == Token.GETELEM )
		{
			if ( rowColumn.getType( ) == Token.NUMBER )
			{
				if ( 0 == rowColumn.getDouble( ) )