Skip to content

Commit

Permalink
Fix an issue - Preview output parameter of sp dataset get right value
Browse files Browse the repository at this point in the history
only at first time when created it
  • Loading branch information
xwu authored and zhiqiangqian committed Jul 22, 2014
1 parent 90aac1d commit 03a7c09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,14 @@ public boolean canLeave( )
{
this.modelChanged = false;
( (DataSetEditor) getContainer( ) ).updateDataSetDesign( this );
try
{
DataSetUIUtil.updateColumnCache( (DataSetHandle) getContainer( ).getModel( ) );
}
catch ( SemanticException e )
{
e.printStackTrace( );
}
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ protected QueryDefinition constructQuery( DataSetHandle dataset, DataRequestSess
throws BirtException
{
QueryDefinition query = super.constructQuery( dataset, session );

query.getBindings( ).clear( );

PropertyHandle propertyHandle = dataset.getPropertyHandle( DataSetHandle.PARAMETERS_PROP );
int paramsSize = propertyHandle.getListValue( ).size( );
Expand Down

0 comments on commit 03a7c09

Please sign in to comment.