Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Using global variable in master page footer
Using global variable in master page footer [message #994727] Fri, 28 December 2012 05:33 Go to next message
Peace Kind is currently offline Peace KindFriend
Messages: 1
Registered: December 2012
Junior Member
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 17:22 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Can you attach a report, using the sample database, that shows what you're trying to do?

Michael

Developer Evangelist, Silanis
Previous Topic:Generating a Gantt Chart usig cross tab
Next Topic:Webshpere ,birt version 'birt-runtime-2_5_2'
Goto Forum:
  


Current Time: Sat Jul 04 01:46:41 GMT 2015

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

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