Bug 211015 The XTab can be preview after remove its measure's binding[1102]
Description: I created a crosstab and for my mistaken step I remove the measure's binding. But preview is ok. At this time I don't know my measure's binding is gone. After that I want specify a filter on measure. But I can not found the measure in the selecting list. Build number: 2.3.0.v20071127-1036 Steps to reproduce: 1, New a Crosstab with levels and measures 2, Delete all the bindings of measure 3, Preview the crosstab Expected result: The preview should be failed. Actual result: The preview is ok, and all the measures are in the results
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeCursorImpl.java
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.olap.OLAPException;
import javax.olap.cursor.Blob;
import javax.olap.cursor.Clob;
import javax.olap.cursor.CubeCursor;
import javax.olap.cursor.Date;
import javax.olap.cursor.RowDataMetaData;
import javax.olap.cursor.Time;
import javax.olap.cursor.Timestamp;
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.IBinding;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.olap.api.ICubeCursor;
import org.eclipse.birt.data.engine.olap.api.query.ICubeQueryDefinition;
import org.eclipse.birt.data.engine.olap.script.JSCubeBindingObject;
import org.eclipse.birt.data.engine.olap.script.OLAPExpressionCompiler;
import org.eclipse.birt.data.engine.olap.util.OlapQueryUtil;
import org.eclipse.birt.data.engine.script.ScriptEvalUtil;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
/**
 * 
 */
public class CubeCursorImpl implements ICubeCursor