COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: dougp on 11 Apr 2022 12:41:50 PM

Title: Header appearing inappropriately on later pages
Post by: dougp on 11 Apr 2022 12:41:50 PM
It seems like I have seen the answer to this before, but I'm unable to find it.

using CA 11.1.7IF8

How do I prevent category labels (group headers, etc.) from appearing on subsequent pages where there is no associated data?

I am developing a report that shows lists containing categories of data in groups.  The different lists contain different data, different numbers of columns, different relationships to child lists, etc., so they can't be sourced from a single query, mashed into a single list, and have grouping applied.  I'm using blocks to layout the page.  I tried tables and had the same results.

Category 1
   List
Category 2
   List

The problem is that one report page may produce multiple physical pages.  When I run the report to PDF, Category 1 shows on every page, even when it has run out of data.

I developed a simple report (https://pastebin.com/cz0tv53Z) to demonstrate the problem.

I'll try to code blocks here to depict what the pages may look like in the printed document.  Notice "Category 1" appears on page 3, but has no data.




Category 1
   data
   data
   data
   data





Category 1
   data
   data

Category 2
   data
   data





Category 1    <-  This shouldn't be here.

Category 2
   data
   data
   data
   data