COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: khoinh on 16 Sep 2010 03:25:23 AM

Title: create two lines of content in title of list
Post by: khoinh on 16 Sep 2010 03:25:23 AM
Hi,

   I want to create two lines of content in title of list. How can I do that?

Thanks
Khoi
Title: Re: create two lines of content in title of list
Post by: technomorph on 16 Sep 2010 04:46:55 AM
Headers and Footers are controlled by grouping columns and then using these to define headers and footers. Headers and footers are created by either selecting the grouped column and hitting the Section toolbar button, or going to Structure > Headers and Footers > List Headers and Footers (v 8.4) and then checking the groups you need.

The first option effectively nests a list within a list. This option provides more flexibility in terms of formatting, but can be more difficult to maintain. The second option is more straight forward, but does have some limitations when formatting. On balance I prefer the second option.

If you are trying to add in a second line for the title you will need to create a group which is positioned either above or below where you want the line to appear. You can control this, by using the Grouping and Sorting property of the list. Depending on what you are doing, you may need to create a dummy data item.

Failing any of that, a more clunky approach is to unlock the list and use text items and tables to effectively create two lines in each title cell.