Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Re: Report Headers / Footers

    Posted Fri April 30, 2021 02:41 AM
    HI Every,

    I have a simple report published to PDF from Cognos. I have a Header and Footer appearing on all pagers produced for each team member. There is 3+ pages in each report.

    How can I only show the header / footer on the first page only?

    Thanks in advance.

    David.

    ------------------------------
    David Willis
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Re: Report Headers / Footers

    Posted Fri April 30, 2021 03:22 AM

    Hi David,

    I didn't try it out but I can suggest two things:

    1. Try to split the report in to multiple pages directly in the report spec. Then you can define the header and footer just on the first page.
    2. If you cannot split the report, you can work with conditional blocks. Create a boolean variable that counts the page number and set this as block variable. Inseart the header/footer content into the right conditional block state (Yes/No) and leave the other block empty.
    I hope this helps.
    Br

    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    ------------------------------



  • 3.  RE: Re: Report Headers / Footers

    Posted Sun May 02, 2021 03:26 PM
    HI Robert,

    Thank you very much for your help with this support request. 

    Regards,

    David.

    ------------------------------
    David Willis
    ------------------------------



  • 4.  RE: Re: Report Headers / Footers

    Posted Fri April 30, 2021 04:04 AM
    Hi @David Willis,

    Your question: "How can I only show the header / footer on the first page only?" 

    TL;DR: Define a class "hide_header" with box type none or none-inline. Define header and footer in your report page. Define a conditional style that hides header when pagenumber() is not 1.



    Goto Report > Classes

    Define a hiding class: "AmvaraHide"


    Create Header and Footer on your report page + define conditional style

    Hope this helped.





    ------------------------------
    Ralf Roeber
    https://linkedin.com/in/ralf-roeber-470425a/
    ------------------------------



  • 5.  RE: Re: Report Headers / Footers

    Posted Sun May 02, 2021 03:26 PM
    HI Ralf,

    Thank you very much for your help with this support request. 

    Regards,

    David.

    ------------------------------
    David Willis
    ------------------------------