Skip to content

Commit

Permalink
Fixed Variable can export data when untick "Allow Export" option in Data
Browse files Browse the repository at this point in the history
Binding dlg (T51508)
  • Loading branch information
ruo.yin authored and jili committed May 14, 2013
1 parent 0a74e4c commit a4089c4
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
import org.eclipse.birt.report.engine.api.EngineException;
import org.eclipse.birt.report.engine.api.IResultMetaData;
import org.eclipse.birt.report.engine.i18n.MessageConstants;
import org.eclipse.birt.report.model.api.DataItemHandle;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.TableHandle;
import org.eclipse.birt.report.model.api.elements.structures.ComputedColumn;
import org.eclipse.birt.report.model.elements.interfaces.IReportItemModel;

public class ResultMetaData implements IResultMetaData
{
Expand Down Expand Up @@ -121,19 +123,15 @@ private static class MetaDataEntry

protected void appendMetaData( IBaseQueryDefinition query, DesignElementHandle handle )
{
TableHandle tableHandle = null;

ArrayList<ComputedColumn> columnList = null;
ArrayList<String> notAllowed = new ArrayList<String>( );
if ( handle != null
&& handle instanceof TableHandle )
&& handle instanceof TableHandle || handle instanceof DataItemHandle)
{
tableHandle = (TableHandle) handle;
columnList = (ArrayList<ComputedColumn>)handle.getProperty( IReportItemModel.BOUND_DATA_COLUMNS_PROP );
}

if (tableHandle != null)
{
columnList = (ArrayList<ComputedColumn>)tableHandle.getProperty( TableHandle.BOUND_DATA_COLUMNS_PROP );
}
if (columnList != null )
{
for( int i = 0; i < columnList.size( ); i++ )
Expand Down

0 comments on commit a4089c4

Please sign in to comment.