Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350216

Summary: reportContext.getPageVariable("pageNumber") will return totalPage not pageNumber
Product: z_Archived Reporter: yadong xu <sssxyd>
Component: BIRTAssignee: Gang Liu <hustlg>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, ghigad
Version: 2.6.1   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description yadong xu CLA 2011-06-24 03:38:50 EDT
Build Identifier: Build id: 20100917-0705

in the method: 
org.eclipse.birt.report.engine.executor.ExecutionContext.getPageVariable(String)
You guys spell wrong word.
		if ( "pageNumber".equals( name ) )
		{
			return Long.valueOf( totalPage );
		}

Reproducible: Always

Steps to Reproduce:
1.create a report with at least two pages.
2.print pageNumber with script reportContext.getPageVariable("pageNumber").
3.run.
Comment 1 Gang Liu CLA 2011-06-29 22:25:27 EDT
fixed.
Comment 2 Gang Liu CLA 2011-11-07 20:53:22 EST
*** Bug 363055 has been marked as a duplicate of this bug. ***