Bug 123727 the 'Top N' and 'Buttom N' do not work
Description: the 'Top N' and 'Buttom N' do not work Steps to reproduce: 1. new a report 2. new a datasource and a dataset 3. creat a report parameter, 4. drag a chart to the layout, In chart dialogue, click the 'select data' tab and click the button 'filters'. 5. set two filters condition, one is used the 'Top N' function and the other used the report parameter. 6. save and preview Actual result: NO data are displayed. Expect result: The data displayed according to the 'Top N' and 'Input Parameters'
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java
}else				
					N = Double.valueOf( n.toString() ).intValue();
			}catch (NumberFormatException e)
			{
				
			}
			
			
			if( N < 0 )
				throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N_ARGUMENT);
			
			
		}
		if ( getPassLevel( ) == FIRST_PASS )
		{
			return doFirstPass( value );
		}
		else if ( getPassLevel( ) == SECOND_PASS )
		{
			return doSecondPass( );
		}
		return false;
	}
	/**
	 * Do the first pass. In the first pass we maintain a value list and a row id list that will
	 * host all top/bottom N values/rowIds so that in pass 2 we can use them to filter rows out.
	 * @param value
	 * @return
	 * @throws DataException
	 */