Bug 190419 The topn filter doesn't take effect on the datetime type dimension[1102]
Description: The topn filter doesn't take effect on the datetime type dimension[1102] Build number: 2.2.0.v20070601-1347 Steps to reproduce: 1, New a crosstab which includes datetime type dimension 2, Specify a filter on the year level using two filter condition data["year"] topn 2 or dimension["Date"]["year"] topn 2 3, Preview Expected result: Both filter condition can take effect Actual result: No effect only 2005 year in crosstab
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/util/filter/TopBottomDimensionFilterEvalHelper.java
this.filterType = IJSTopBottomFilterHelper.TOP_PERCENT;
				break;
			case IConditionalExpression.OP_BOTTOM_N:
				this.filterType = IJSTopBottomFilterHelper.BOTTOM_N;
				break;
			case IConditionalExpression.OP_BOTTOM_PERCENT:
				this.filterType = IJSTopBottomFilterHelper.BOTTOM_PERCENT;
				break;
			default:
				assert false;
		}
	}
	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.engine.olap.util.filter.IJSTopBottomFilterHelper#evaluateFilterExpr(org.eclipse.birt.data.engine.olap.util.filter.IResultRow)
	 */
	public Object evaluateFilterExpr( IResultRow resultRow ) throws DataException
	{
		this.dimObj.setResultRow( resultRow );
		this.dataObj.setResultRow( resultRow );
		Context cx = Context.enter( );
		try
		{
			Object result = ScriptEvalUtil.evalExpr( ( (IConditionalExpression) expr ).getExpression( ),
					cx,
					scope,
					null,
					0 );
			return result;
		}