Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350216 - reportContext.getPageVariable("pageNumber") will return totalPage not pageNumber
Summary: reportContext.getPageVariable("pageNumber") will return totalPage not pageNumber
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Gang Liu CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
: 363055 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-24 03:38 EDT by yadong xu CLA
Modified: 2011-11-07 20:53 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***