Bug 172618 [smoke]Cascading parameter cannot retrieve correct values.[0705]
Description: Cascading parameter cannot retrieve correct values. Build number:2.1.2.v20070202. 2.2.0.v20070131 Steps to reproduce: 1. New sample data source and dataset from OFFICES. 2. New a cascading group, first parameter from COUNTRY, second from STATE 3. Preview. Expected result: Select a country value, then corresponding state value will display. e.g. select France, then only paris in second list. Actual result: Select France, you will see paris, NYC and San Francisco in second list. Error log:N/A
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
}
	
	/*
	 * @see org.eclipse.birt.data.engine.api.IResultIterator#moveTo(int)
	 */
	public void moveTo( int rowIndex ) throws BirtException
	{
		checkStarted( );
		
		if ( state == BEFORE_FIRST_ROW )
		{
			this.prepareCurrentRow( );
			state = ON_ROW;
		}
		int currRowIndex = odiResult.getCurrentResultIndex( );
		
		if ( rowIndex < 0 || rowIndex >= this.odiResult.getRowCount( ) )
			throw new DataException( ResourceConstants.INVALID_ROW_INDEX,
					new Integer( rowIndex ) );
		else if ( rowIndex < currRowIndex )
			throw new DataException( ResourceConstants.BACKWARD_SEEK_ERROR );
		else if ( rowIndex == currRowIndex )
			return;
		int gapRows = rowIndex - currRowIndex;
		for ( int i = 0; i < gapRows; i++ )
			this.next( );
	}
	
	/**
	 * @return save util used in report document GENERATION time