How to comment code in Cognos Report Studio?
There are 5 ways to give comments in Cognos Report studio
- Create new page and use a Boolean variable to hide it
- Drag a new report page in the report.
- Drag a text item on that page.
- Write your comments in that text item.
- Make Boolean variable which is always false like 1=0 .
- In render variable property of that page select that Boolean.
- Using HTML Comments
- Insert an HTML item on the page where you like to put your comment.
- Write your code like this <!– This is a HTML Comment –!>. It will be commented out.
- Using XML Comments
- Report studio generated XML for every report specification.
- Once you have saved a report open its XML specification in an editing tool.
- Write your code like thsi <! – This is a XML Comment — >. It will be commented out
- Only drawback is you have to open the XML in an editor every time you want to edit the comment.
4. For inline comments like programming languages we can use the following code
#/*<your comment here>*/#
for eg
-
5. Make a dummy string variable and give code comments in its values.
No comments:
Post a Comment