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.tests/test/org/eclipse/birt/data/engine/olap/api/CubeFeaturesTest.java
IBinding binding12= new Binding( "city_total");
		binding12.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		binding12.setAggrFunction( IBuildInAggregation.TOTAL_SUM_FUNC );
		binding12.addAggregateOn( "dimension[\"dimension1\"][\"level11\"]" );
		binding12.addAggregateOn( "dimension[\"dimension1\"][\"level12\"]" );
		
		
		cqd.addBinding( binding12 );
		
		IBinding binding13= new Binding( "country_total");
		binding13.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		binding13.setAggrFunction( IBuildInAggregation.TOTAL_SUM_FUNC );
		binding13.addAggregateOn( "dimension[\"dimension1\"][\"level11\"]" );
		
		cqd.addBinding( binding13 );
	}
	
	
	
	private void printCube( CubeCursor cursor, String country_year_total,
			String city_year_total, String dist_total, String city_total,
			String country_total, String year_total, String grand_total,
			String[] columns, String row, String measure ) throws OLAPException, IOException
	{
		EdgeCursor edge1 = (EdgeCursor) (cursor.getOrdinateEdge( ).get( 0 ));
		EdgeCursor edge2 = (EdgeCursor) (cursor.getOrdinateEdge( ).get( 1 ));
		
		String[] lines = new String[ edge1.getDimensionCursor( ).size( ) ];
		for ( int i = 0; i < lines.length; i++ )