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

Bug 212837

Summary: [Improve Page Aggregate capabilities] Allow master page header and footer to access contents in report page
Product: z_Archived Reporter: Wenfeng Li <wenfeng.fwd>
Component: BIRTAssignee: Wei Yan <wyan>
Status: VERIFIED DUPLICATE QA Contact: mindan xu <mindan.xu>
Severity: enhancement    
Priority: P3 CC: rkanguri, wenfeng.fwd, whe, wyan, xwang, xxue
Version: 2.2.2Keywords: plan
Target Milestone: 2.5.0 RC1   
Hardware: All   
OS: All   
Whiteboard: Obsolete

Description Wenfeng Li CLA 2007-12-12 21:19:43 EST
There have been many requests to allow master page header and footer change based on the content in the report page.

Can we make following enhancement?

1) Add built-in scripting object as "pageContext",
2) pageContext has a set of pre-defined members such as page number, but user can also add any name, value pair they want into the context.
3) user can change the values in pageContext during report generation in event scripts that are triggered in the EngineRuntask.
4) user can also access and change the values of members in pageContext in master page's page header or page footer scripts.  
5) master page header and footer scripts will be evaulated AFTER the page content is generated, so changes on pageContext will be reflected in the current page's pageheader and page footer.
Comment 1 Wenfeng Li CLA 2007-12-12 21:21:31 EST
please comment.  If we agree, we also need UI design to show this built in scriptable object in expression builders.
Comment 2 Wei Yan CLA 2008-05-28 22:31:43 EDT
defer to next major milestone. We need resolve most of the page-break/page-number/page-script issues together.
Comment 3 Wei Yan CLA 2009-04-27 23:30:07 EDT
defer to RC1 due to resource limitation.
Comment 4 Wei Yan CLA 2009-05-15 03:42:58 EDT
can be implemented through the page aggregation. see 159857.

*** This bug has been marked as a duplicate of bug 159857 ***
Comment 5 mindan xu CLA 2009-05-17 23:06:17 EDT
Verified.