Bug 122306 TOC on group won't be displayed
Description: TOC on group won't be displayed Steps to reproduce: 1.Add a sample datasource and a data with table "CUSTOMERS" 2.Add a table binding with data set 3.Add a group on the table and set the toc expression to "Group" 4.Preview in HTML Expected result: TOC "Group" will be displayed on the TOC pane Actual result: Nothing in the TOC pane
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
page.setShowHeaderOnFirst( handle.showHeaderOnFirst( ) );
		SlotHandle headerSlot = handle.getPageHeader( );
		for ( int i = 0; i < headerSlot.getCount( ); i++ )
		{
			apply( headerSlot.get( i ) );
			if ( currentElement != null )
			{
				page.addHeader( ( ReportItemDesign ) currentElement );
			}
		}
		SlotHandle footerSlot = handle.getPageFooter( );
		for ( int i = 0; i < footerSlot.getCount( ); i++ )
		{
			apply( footerSlot.get( i ) );
			if ( currentElement != null )
			{
				page.addFooter( ( ReportItemDesign ) currentElement );
			}
		}
		currentElement = page;
	}
	public void visitList( ListHandle handle )
	{
		
		ListItemDesign listItem = new ListItemDesign( );
		setupListingItem( listItem, handle );
		
		SlotHandle headerSlot = handle.getHeader( );
		listItem.setHeader( createListBand( headerSlot ) );