Bug 155007 Group Toc doesn't work well
Group Toc doesn't work well Steps to reproduce: run the attached file and preview it in html/web viewer/PDF Expected results: Group toc works well Actual results: Group toc doesn't work well
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
* 
		 * @param item
		 *            report item
		 * @return a report query
		 */
		protected BaseQueryDefinition createQuery( ReportItemDesign item )
		{
			DesignElementHandle handle = item.getHandle( );
			if ( ! ( handle instanceof ReportItemHandle ) )
			{
				if ( !needQuery( item ) )
				{
					return null;
				}
				
				return createSubQuery( item );
			}
			ReportItemHandle designHandle = (ReportItemHandle) handle;
			DataSetHandle dsHandle = designHandle.getDataSet( );
			if ( dsHandle == null )
			{
				
				String dsName = (String) designHandle
						.getProperty( ReportItemHandle.DATA_SET_PROP );
				if ( dsName != null && dsName.length( ) > 0 )
				{
					context.addException( item.getHandle( ),
							new EngineException(
									MessageConstants.UNDEFINED_DATASET_ERROR,
									dsName ) );