Skip to main content



      Home
Home » Archived » BIRT » Using global variable in master page footer
Using global variable in master page footer [message #994727] Fri, 28 December 2012 00:33 Go to next message
Eclipse UserFriend
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.
Re: Using global variable in master page footer [message #994939 is a reply to message #994727] Fri, 28 December 2012 12:22 Go to previous message
Eclipse UserFriend
Can you attach a report, using the sample database, that shows what you're trying to do?
Previous Topic:Generating a Gantt Chart usig cross tab
Next Topic:Webshpere ,birt version 'birt-runtime-2_5_2'
Goto Forum:
  


Current Time: Tue Jul 08 09:08:28 EDT 2025

Powered by FUDForum. Page generated in 0.07406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top