Code comments
All applications need some kind of code commenting mechanism for maintenance purposes. With programming languages it is easier; however with tools it can be a little tricky to put comments. In this recipe, we will see different options around putting comments within a report that will be invisible from users but accessible to the developers.
Getting ready
Open any existing report in Cognos Report Studio.
How to do it...
For the first technique to put comments and notes within a report and hide it from users, go to Page Explorer and create a new page. Call it Comments.
Open this new page and drag text items on it. Write all the comments about report here (description, functionality, notes, special cases, and so on).
Now go to Condition Explorer and create a new Boolean variable. Define the expression as:
1=0
. Name this variable asRender_Comments
.Go to Comments page. Open the Render Variable property and connect it to
Render_Comments
variable.Run the report. Notice that Comments page...