new ScriptExpression( "row[\"" + this.rowExprName[i] + "\"]" ) );
this.rowBeArray[i] );
	private QueryDefinition newPreIVReportQuery( )	{		QueryDefinition qd = new QueryDefinition( );		if ( GEN_add_filter == true )		{			qd.addFilter( GEN_filterDefn );		}				if ( PRE_add_filter == true )		{			// do filtering on column 4			ScriptExpression filterExpr = new ScriptExpression( "row.AMOUNT_1>200" );			FilterDefinition fd = new FilterDefinition( filterExpr );			qd.addFilter( fd );		}		if ( PRE_add_sort )		{			// do sorting on column 4			SortDefinition sd = new SortDefinition( );			sd.setExpression( "row.AMOUNT_1" );			sd.setSortDirection( ISortDefinition.SORT_ASC );			qd.addSort( sd );		}		if ( PRE_add_group == true )		{			// add grouping on column1			String columnBindingNameGroup = "COUNTRY2";			IBaseExpression columnBindingExprGroup = new ScriptExpression( "dataSetRow.COUNTRY" );			GroupDefinition gd = new GroupDefinition( );			gd.setKeyColumn( "COUNTRY2" );			qd.addResultSetExpression( columnBindingNameGroup,					columnBindingExprGroup );			qd.addGroup( gd );		}		for ( int i = 0; i < rowExprName.length; i++ )		{			if ( PRE_use_oldbinding )			{				qd.addResultSetExpression( this.rowExprName[i],						this.rowBeArray[i] );			}			else			{				qd.addResultSetExpression( this.rowExprName[i],						new ScriptExpression( "row[\""								+ this.rowExprName[i] + "\"]" ) );			}		}		for ( int i = 0; i < totalExprName.length; i++ )		{			if ( PRE_use_oldbinding )			{				qd.addResultSetExpression( this.totalExprName[i],						this.totalBeArray[i] );			}			else			{				qd.addResultSetExpression( this.totalExprName[i],						new ScriptExpression( "dataSetRow[\""								+ this.totalExprName[i] + "\"]" ) );			}		}		return qd;	}