Bug 199488 BIRT Cross tab - Filter/SORT dialog UI needs improvement
Improve the crosstab filter dialog for cross tab. Currently we directly display the bound data columns of the crosstab. It is very difficult for user to find which column is based on aggregation.
data/org.eclipse.birt.report.data.adapter/test/org/eclipse/birt/report/data/adapter/internal/script/DataRequestSessionTest.java
IDimensionDefinition dim1 = columnEdge.createDimension( "dim1" );
		IHierarchyDefinition hier1 = dim1.createHierarchy( "hier1" );
		hier1.createLevel( "level1" );
		hier1.createLevel( "level2" );
		hier1.createLevel( "level3" );
		
		
		IEdgeDefinition rowEdge = query.createEdge( ICubeQueryDefinition.ROW_EDGE );
		IDimensionDefinition dim2 = rowEdge.createDimension( "dim2" );
		IHierarchyDefinition hier2 = dim2.createHierarchy( "hier2" );
		hier2.createLevel( "level1" );
		List l1 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim1\"][\"level1\"]", "data[\"b1\"]", query );
		assertTrue( l1.size( ) == 0 );
		
		List l2 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim1\"][\"level1\"]", "data[\"b7\"]", query );
		assertTrue( l2.size( ) == 1 );
		assertTrue( ((ILevelDefinition)l2.get(0)).getName( ).equals( "level1" ));
		
		List l3 = this.session.getCubeQueryUtil( ).getReferencedLevels( "dimension[\"dim2\"][\"level1\"]", "data[\"b71\"]", query );
		assertTrue( l3.size( ) == 2 );
		assertTrue( ((ILevelDefinition)l3.get(0)).getName( ).equals( "level1" ));
		assertTrue( ((ILevelDefinition)l3.get(1)).getName( ).equals( "level2" ));
	}
	
	public void tearDown()
	{
		this.session.shutdown( );
	}
}