Bug 156166 Error occour when previewing attached report in web viewer.
Decription:Error occour when previewing attached report in web viewer. Steps to reproduce: 1.run attached reports in web viewer. Expeceted results: preview properly Actual results: Error occour when previewing the reports in web viewer while it works properly in html and PDF
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/BindingColumnsEvalUtil.java
import java.util.Map.Entry;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.api.IBaseExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.expression.ExprEvaluateUtil;
import org.eclipse.birt.data.engine.impl.ResultIterator.RDSaveHelper;
import org.eclipse.birt.data.engine.impl.document.viewing.ExprMetaUtil;
import org.eclipse.birt.data.engine.odi.IResultClass;
import org.eclipse.birt.data.engine.odi.IResultIterator;
import org.mozilla.javascript.Scriptable;
/**
 * Evaluate a row of bound columns and meantime do something related with saving
 * the value of bound columns.
 * 
 * There is different behavior when query is running on dataset or report
 * document. In the latter case, original binding column name is reserved and
 * only the binding column can be added, not allowed for delete or change. So it
 * is reasonable to assume that if the binding name is the same as one of
 * original binding columns, the binding expression is also the same as that of
 * the orignial one.
 */
class BindingColumnsEvalUtil
{
	 
	private IResultIterator odiResult;
	private Scriptable scope;
	private RDSaveHelper saveHelper;
	private List allManualBindingExprs;
	private List allAutoBindingExprs;
	private boolean isBasedOnRD;