Home
Analytics
How to set the footer text only display in last page
whlawdev
I use BIRT ver 2.6 to develop a purchase order form. The form has header box, detail box, footer box and signature box. Now I use the list to develop the header, detail & footer boxes. The signature box that I placed in master page footer. Because the signature box need to only placed in the bottom of last page footer. But now the signature box placed in the bottom of every page, and I need the footer box do not separate to two pages. Whole footer box place to next page if the current page not enough space. How can I make the signature box only placed in the bottom of last page, and the footer box do not separate.
Many thanks
Find more posts tagged with
Comments
KavithaD
Hi whlawdev,
For displaying footer text only in last page you can do something like this in your footer signature box script onRender method
if(pageNumber < totalPage){
this.getStyle().display ="none"
}
hope this may help you,
Thank you,
Kavitha
whlawdev
Hi Kavitha,
Thank you for your support. Your suggestion is worked for my requirement. But I am a first time to use the BIRT, now I have a problem that the report cannot change the page number. The page number alway show "1" in all pages (the attached report has three pages). Whether I make a wrong setting. Please provide a suggestion to me.
Thanks,
whlawdev
KavithaD
Hi whlawdev,
May i know why are you using below script?
importPackage(Packages.java.lang);
if(reportContext.getPersistentGlobalVariable("PN") == null ){
reportContext.setPersistentGlobalVariable("PN",new Integer(1));
reportContext.setPageVariable("PageNum", 1);
}else{
var curr = parseInt(reportContext.getPersistentGlobalVariable("PN"));
reportContext.setPersistentGlobalVariable("PN", new
Integer(parseInt(curr)+1));
reportContext.setPageVariable("PageNum", curr+1);
}
Thank you,
Kavitha
nishabanke
<p>Hello</p>
<p>I am using BIRT Report Designer version 3.7.2. And tried my best to get the footer on last page. Also tried answers from this blog, but didn't found any concrete solution . Can any one let me know where I am going wrong?</p>
<p> </p>
<p>Thank you</p>
<p>Nisha Banke</p>