Bug 118592 Report error
please see attached design file.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
* the prepared ReportQueryDefn.
	 * 
	 * @throws DataException
	 *             if error occurs in Data Engine
	 */
	public IResultIterator getSecondaryIterator( String subQueryName,
			Scriptable scope ) throws DataException
	{
		checkStarted( );
		QueryResults results = query.execSubquery( odiResult,
				subQueryName,
				scope );
		logger.logp( Level.FINE,
				ResultIterator.class.getName( ),
				"getSecondaryIterator",
				"Returns the secondary result specified by a SubQuery" );
		
		if ( this.getRdSaveUtil( ).getSubQueryID( ) == null )
			results.setID( this.getQueryResults( ).getID( ) );
		else
			results.setID( this.getQueryResults( ).getID( )
					+ "/" + this.getRdSaveUtil( ).getSubQueryID( ) );
		
		ResultIterator resultIt = (ResultIterator) results.getResultIterator( );
		resultIt.rdSaveUtil = new RDSaveUtil( resultIt.context,
				resultIt.getQueryResults( ).getID( ),
				resultIt.odiResult,
				subQueryName,
				odiResult.getCurrentGroupIndex( results.getGroupLevel( ) ),
				odiResult.getGroupStartAndEndIndex( results.getGroupLevel( ) ) );