Bug 134662 An unfriendly message pop up when input a very large number in filter Top N
Description: May be Top N value should be less than 100000 but the error message to user is not friendly enough. Step to reproduce: 1.new a datasource and a dataset 2.in the dataset add a filter with top N 3.enter 3655566 in top n 4.click the "Preview Results" Actual result: An error message tell that "data.engine.InvalidTopBottomN100000" Expected result: It had better tell user the Top N's rage of the input
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java
if( n_percent )
			{
				if( n_value < 0 || n_value > 100)
					throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_PERCENT_ARGUMENT);
				N = (int)Math.round( n_value / 100 * filterPassController.getRowCount() );
			}
			else
			{
				if( n_value < 0 )
					throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N_ARGUMENT);
				N = (int)n_value;
			}
			
			if ( N > MAX_N_VALUE )
				throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N + MAX_N_VALUE);
		}
		
		
		Object value = ScriptEvalUtil.evalExpr( op_expr, cx, scope, "Filter", 0 );
		
		if ( filterPassController.getPassLevel( ) == FilterPassController.FIRST_PASS )
		{
			return doFirstPass( value );
		}
		else if ( filterPassController.getPassLevel( ) == FilterPassController.SECOND_PASS )
		{
			return doSecondPass( );
		}
		return false;
	}