Displaying the report name in a footer
When you have many reports (tens or hundreds) on Cognos Portal and a user sends you one output with some query, the first step to identify which report it is from, becomes difficult.
Hence it is good practice to print the report name and path in the footer of all pages. This allows quick reference to which report's output it is from when discussing over the printed reports.
Instead of manually typing the report name and path in each report, we will use a calculation here to avoid maintenance.
Getting ready
We will use the report generated in the previous recipe.
How to do it...
Here we can use a Layout calculation to return the report name. To do this, perform the following steps:
Open the report in Report Studio.
From the toolbox, drag Layout Calculation into the page footer at the appropriate place.
Define the calculation as follows:
ReportPath () + ' : ' + ReportName ()
Click on OK and change the format of this calculation to a more suitable format (generally...