Skip to content

Commit

Permalink
#65020
Browse files Browse the repository at this point in the history
  • Loading branch information
Juda Zhang authored and Juda Zhang committed Sep 2, 2013
1 parent a8632d3 commit 2ed749d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Expand Up @@ -2214,7 +2214,9 @@ protected void addValueSeriesAggregateBindingForGrouping(
for ( Query qry : series.getDataDefinition( ) )
{
String expr = qry.getDefinition( );
if ( expr == null || "".equals( expr ) ) //$NON-NLS-1$

if ( expr == null
|| "".equals( expr ) || isDataBinding( expr ) ) //$NON-NLS-1$
{
continue;
}
Expand Down
Expand Up @@ -168,7 +168,7 @@ protected void addValueSeriesAggregateBindingForGrouping(
for ( Query qry : series.getDataDefinition( ) )
{
String expr = qry.getDefinition( );
if ( expr == null || "".equals( expr ) ) //$NON-NLS-1$
if ( expr == null || "".equals( expr ) || isDataBinding( expr ) ) //$NON-NLS-1$
{
continue;
}
Expand Down Expand Up @@ -319,6 +319,14 @@ protected void addValueSeriesAggregateBindingForGrouping(
}
}
}

protected boolean isDataBinding(String expr){
ExpressionCodec exprCodec = ChartModelHelper.instance( )
.createExpressionCodec( );
exprCodec.decode( expr );
String returnExpr = exprCodec.getExpression( );
return exprCodec.isCubeBinding( returnExpr, true );
}

/**
* Generate a unique binding name.
Expand Down

0 comments on commit 2ed749d

Please sign in to comment.