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/data/dte/ReportQueryBuilder.java
* create query for non-listing report item
		 * 
		 * @param item
		 *            report item
		 * @return a report query
		 */
		protected BaseQueryDefinition createQuery( ReportItemDesign item )
		{
			DataSetHandle dsHandle = ( (ReportItemHandle) item.getHandle( ) )
					.getDataSet( );
			if ( dsHandle == null )
			{
				
				String dsName = (String) ( (ReportItemHandle) item.getHandle( ) )
						.getProperty( ReportItemHandle.DATA_SET_PROP );
				if ( dsName != null && dsName.length( ) > 0 )
				{
					context.addException( item.getHandle( ),
							new EngineException(
									MessageConstants.UNDEFINED_DATASET_ERROR,
									dsName ) );
				}
			}
			if ( dsHandle != null )
			{
				ReportItemHandle riHandle = (ReportItemHandle) item.getHandle( );
				QueryDefinition query = new QueryDefinition( getParentQuery( ) );
				query.setDataSetName( dsHandle.getQualifiedName( ) );
				ArrayList bindings = createParamBindings( riHandle
						.paramBindingsIterator( ) );