COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: vj040 on 12 Jul 2025 07:31:32 AM

Title: Hyperlink on the last page inside page footer
Post by: vj040 on 12 Jul 2025 07:31:32 AM
Hi,

I'm using Cognos report studio 11x and want to print hyperlink at the last page inside the page footer.
The expression "IF ( PageCount () = PageNumber () ) THEN  ( 'Last') ELSE ( '' )" inside text source for hyperlink gives correct result but hyperlink is printing on all pages except last page as hidden link. I've used conditional formatting, conditional rendering, conditional block, style variables but nothing seems to be working.

How can I print this hyperlink only at the last page?

Appreciate any help or suggestions.

Regards
Title: Re: Hyperlink on the last page inside page footer
Post by: MFGF on 16 Jul 2025 12:15:19 PM
Quote from: vj040 on 12 Jul 2025 07:31:32 AMHi,

I'm using Cognos report studio 11x and want to print hyperlink at the last page inside the page footer.
The expression "IF ( PageCount () = PageNumber () ) THEN  ( 'Last') ELSE ( '' )" inside text source for hyperlink gives correct result but hyperlink is printing on all pages except last page as hidden link. I've used conditional formatting, conditional rendering, conditional block, style variables but nothing seems to be working.

How can I print this hyperlink only at the last page?

Appreciate any help or suggestions.

Regards

How are you testing this? If you are running interactively as HTML, Cognos will not know how what the final pagecount will be, as each page gets rendered on-demand. What do you see if you render as PDF (for example), or if you run the report in the background?

Cheers!

MF.