Bug 131011 Support running query based on report document data
Data Engine should support running a query based on data set and expression data stored in a report document. This bugzilla entry serves as a repository for design docs and notes related to this feature.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/viewing/ExprMetaUtil.java
exprMetas[i].setName( IOUtil.readString( dis ) );
				exprMetas[i].setGroupLevel( IOUtil.readInt( dis ) );
				exprMetas[i].setDataType( IOUtil.readInt( dis ) );
				exprMetas[i].setType( IOUtil.readInt( dis ) );
				exprMetas[i].setJSText( IOUtil.readString( dis ) );
			}
			final String POS_NAME = "_dte_inner_row_ori_position_";
			final String FILTER_NAME = "_dte_inner_row_filter_";
			exprMetas[size] = new ExprMetaInfo( );
			exprMetas[size].setName( POS_NAME );
			exprMetas[size].setGroupLevel( 0 );
			exprMetas[size].setDataType( DataType.INTEGER_TYPE );
			exprMetas[size].setType( ExprMetaInfo.SCRIPT_EXPRESSION );
			exprMetas[size].setJSText( "dataSetRow._rowPosition" );
			exprMetas[size + 1] = new ExprMetaInfo( );
			exprMetas[size + 1].setName( FILTER_NAME );
			exprMetas[size + 1].setGroupLevel( 0 );
			exprMetas[size + 1].setType( ExprMetaInfo.SCRIPT_EXPRESSION );
			exprMetas[size + 1].setDataType( DataType.BOOLEAN_TYPE );
			exprMetas[size + 1].setJSText( null );
			dis.close( );
			return exprMetas;
		}
		catch ( IOException e )
		{
			throw new DataException( ResourceConstants.RD_LOAD_ERROR, e );
		}
	}
}