Using Page Variables in BIRT
Why Stack Overflow recommends it
Stack Overflow users link it when they need to show data-driven values in a BIRT master page header or footer and want a walkthrough of page variables and page events.
Recommended by 0 people across 0 different months, 2015 to 2021.
What it is
A short tutorial from the BIRT Developer channel showing how to use page variables in BIRT reports and attach scripts to page events. The worked example lists the first and last customer on a page in the page header.
What people said
Cites user3660637 · 2015-04 · Stack Overflow · on “How to restart page number from 1 in different group of BIRT report”
You can do it with BIRT reports using page variables. For example: Add 2 page variables... Group_page, Group_name. Add 1 report variable... Group_total_page. In the report beforeFactory add the script: prevGroupKey = ""; groupPageNumber = 1; reportContext.setGlobalVariable("gGROUP_NAME", ""); reportContext.setGlobalVariable("gGROUP_PAGE", 1); In the report onPageEnd add the script: var groupKey = currGroup; var prevGroupKey = reportContext.getGlobalVariable("gGROUP_NAME"); var groupPageNumber = reportContext.getGlobalVariable("gGROUP_PAGE"); if( prevGroupKey == null ){ prevGroupKey = ""; } if (prevGroupKey == groupKey) { if (groupPageNumber != null) { groupPageNumber = parseInt(groupPageNumb
Cites RAJASEKHARA REDDY MARAM · 2020-01 · Stack Overflow · on “How to set Data Set Values in Master Page Footer”
I am new to BIRT can you guys help me in this, my requirement is like, I have two fields PMNUM and CHANGEID, I need to show these two fields in master page footer based on third column value TYPE. If TYPE is PM I need to show PMNUM and if TYPE is CM I need to show CHANGEID. I followed this [this video] video to get PMNUM in the footer. But the problem here is if I hide PMNUM From the table, the PMNUM from the footer also hiding. Please guide me on how to solve this problem and share some guide for BIRT events.
Cites kishjeff · 2021-07 · Stack Overflow · on “Birt Master Footer - Set data dynamically not working eclipse 4.3.1 (Maximo 7.6.1.1 - BIRT)”
I am using Maximo 7.6.1.1 and Birt (eclipse 4.3.1). The requirement is to add some page related text with a field from the report into the footer on each page, so I am attempting to update the master page footer. The master page is local, not extended. I have tried to repeat this from 2013 ( [this video] ) without success. So using page level variables as described by the link did not work - it appears that the page event for the variable I chose (when the variable is about to be updated on the page) did not seem to be getting invoked. Has this possibly changed (since 2013) or does someone know of another work around? I tried to add a number of data elements to the footer without success. I did s