Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Using global variable in master page footer
new_user
Dear Friends,
I'm new to BIRT report tool. I wanted to ask question about how to use global variable in master page footer.
In my report, in table details, onCreate method, i had the following code:
countOfRows++;
reportContext.setPersistentGlobalVariable("global_count", ""+countOfRows);
then, in master page footer (a label), i wanted to retrieve this variable:
temp = parseInt(reportContext.getPersistentGlobalVariable("global_count"));
if(pageNumber<totalPage){
this.getStyle().display ="none"
}
if(temp == 0){
this.getStyle().display ="none"
}
but i could not get the correct value in master page footer.
Thanks in advance.
Find more posts tagged with
Comments
mwilliams
What value are you getting in the master page? Have you tried using a page variable, rather than a pgv?