Bug 213804 [Automation][Regression]Table of contents does not work correcly
Description: Add a table of content tag on a grid which is in page 2 in a report, but when I click the TOC tag it redirects to page 1. Test Date: 20071224 Test Build: BIRT2.3.0 Daily Build: v20071224-0800 Step to reproduce: 1. Use the report attached 2. Preview it in web viewer 3. Click the TOC Expect result: TOC should link to the grid in page 2. Actual result: TOC redirects to page 1.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java
* frames use the first data row, detail rows are repeated for each data row,
 * etc. The output of the executor, for now, is a specific output format, i.e.,
 * HTML, FO or PDF, with the help of the emitter extensions.
 * <p>
 * 
 * The report instance creation logic is subject to further abstraction, because
 * it is needed in both report generation and report presentation. This is
 * because report document (not supported for now) does not store each report
 * item instance. As a result, the report item instances need to be created at
 * presentation time too. For now, report generation and presentation are merged
 * as we do not generate report documents. The report instance creation logic is
 * therefore run only once. When the generation and presentation phases are
 * separated, the output of an executor could not only be a specific report
 * output format, but also be a report document. Data would then come from
 * database in factory engine, and from report document in the presentation
 * engine.
 * 
 */
public class ReportExecutor implements IReportExecutor
{
	protected static Logger logger = Logger.getLogger( ReportExecutor.class
			.getName( ) );
	
	private ExecutionContext context;
	
	private ExecutorManager manager;
	private Report report;
	private ReportContent reportContent;
	private long uniqueId;