Bug 146548 [regression]Data type convert in chart data binding doesn't work.
Description: Data type convert in chart data binding doesn't work. Steps to reproduce: 1. New sample data source and dataset from OFFICES. 2. Insert a chart, bind it to dataset 3. Edit data binding to change officecode from string type to integer type 4. Drag officecode to y-series Expected result: No errors. Actual result: Unable to use a text data to render a numerical/datetime axis. org.eclipse.birt.chart.exception.ChartException at: org.eclipse.birt.chart.factory.Generator.build(Generator.java:985) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.updateBuffer(ChartPreviewPainter.java:152) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.renderModel(ChartPreviewPainter.java:333) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.doLivePreview(TaskSelectData.java:1043) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.changeTask(TaskSelectData.java:984) org.eclipse.birt.chart.ui.swt.wizard.ChartAdapter.notifyChanged(ChartAdapter.java:68) org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/ExprEvaluateUtil.java
import org.eclipse.birt.core.data.DataType;
import org.eclipse.birt.core.data.DataTypeUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.script.JavascriptEvalUtil;
import org.eclipse.birt.data.engine.api.IBaseExpression;
import org.eclipse.birt.data.engine.api.IConditionalExpression;
import org.eclipse.birt.data.engine.api.IScriptExpression;
import org.eclipse.birt.data.engine.api.querydefn.ConditionalExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.i18n.ResourceConstants;
import org.eclipse.birt.data.engine.odi.IResultIterator;
import org.eclipse.birt.data.engine.odi.IResultObject;
import org.eclipse.birt.data.engine.script.DataExceptionMocker;
import org.eclipse.birt.data.engine.script.JSRowObject;
import org.eclipse.birt.data.engine.script.NEvaluator;
import org.eclipse.birt.data.engine.script.ScriptEvalUtil;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
/**
 * Expression evaluation utitlity class for compiled expression or uncompiled
 * expression.
 */
public class ExprEvaluateUtil
{
	
	/**
	 * @param dataExpr
	 * @param odiResult
	 * @param scope
	 * @param logger