Home
Analytics
How to hide the footer on last page ?
Rojo
Hi Community, is there a way to hide the footer on last page ?
I'm trying using the visibility property, like this:
Hide when
pageNumber = totalPage
but the footer still there.
Thanks.
Find more posts tagged with
Comments
mwilliams
Hi Rojo,
Is this a table footer or group footer? If it's the table footer, since it's only shown on the last page anyways, you can just delete it from your design.
Rojo
Sorry MWilliams, the correct question is "How to show the page footer (master page), only in the last page, and hide it in the rest".
Because I have a document where I need to show the page footer only in the last page, and hide in the rest.
I'm trying with the visibility property, with this condition:
Hide if pageNumber != pageTotal.
but it doesn't works.
Thanks.
mwilliams
Rojo,<br />
<br />
Unfortunately, headers and footers are only created once and then just redisplayed. There is no option to only include the footer on the last page. The best way to do this would be to just put the info you only want on the last page in the footer of your table, as this only displays at the end of the table. Another way is if you had a summary grid or table that you always display separately on the last page, you could create a separate master page and attach it to this item.<br />
<br />
This would be a good enhancement request to put in. You can do this at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>.
Rojo
Thanks MWilliams, I'll try putting the info on a table and setting the visibility conditions.
Thanks.
PrathiBirt
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="55683" data-time="1255705481" data-date="16 October 2009 - 08:04 AM"><p>
Rojo,<br />
<br />
<br />
Unfortunately, headers and footers are only created once and then just redisplayed. There is no option to only include the footer on the last page. <span style='color: #FF00FF'><span style='color: #00FF00'>The best way to do this would be to just put the info you only want on the last page in the footer of your table, as this only displays at the end of the table.</span></span> <span style='color: #FF0000'><strong class='bbc'>Another way is if you had a summary grid or table that you always display separately on the last page, you could create a separate master page and attach it to this item.</strong></span><br />
This would be a good enhancement request to put in. You can do this at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>.<br /></p></blockquote>
<br />
<br />
Hi Williams,<br />
<br />
<br />
How i can do that above 2 marked content.<br />
I m using Birt Version: 2.5.2.v20090925-9dE-9CGJexwJPcfpfqGkK_4lg9Ti<br />
Build id: v20100210-0630<br />
<br />
Thanks,<br />
Pradeep Kumar S
johnw
In the grid you have on your footer in the master page, open the script tab, set to onRender, and use the following script. This will hide the footer on all pages except the last one.
if (BirtComp.lessThan(pageNumber, totalPage))
{
this.getStyle().display = "NONE";
}
PrathiBirt
<blockquote class='ipsBlockquote' data-author="'johnw'" data-cid="70745" data-time="1290627879" data-date="24 November 2010 - 12:44 PM"><p>
In the grid you have on your footer in the master page, open the script tab, set to onRender, and use the following script. This will hide the footer on all pages except the last one.<br />
<br />
if (BirtComp.lessThan(pageNumber, totalPage))<br />
{<br />
this.getStyle().display = "NONE";<br />
}<br /></p></blockquote>
<br />
Hi ,<br />
<br />
Thanks for ur input.<br />
It works fine .<br />
<br />
Thanks,<br />
Pradeep Kumar S
srikala
Hello
How is it working for you, i tried the same. its not working for me please help
mwilliams
What is your BIRT version? And what output are you using?