If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Add comments in Report Studio

Started by tjohnson3050, 15 Aug 2012 04:21:19 PM

Previous topic - Next topic

tjohnson3050

Although it is not documented, comments can be added inside a query item expression using the following syntax:

#/*Here are the comments*/#

bdbits

Thanks for sharing this. I have sometimes craved embedded comments and thought it was not possible.

tjohnson3050

The same for me.  I always thought it wasn't possible until I stumbled on a KB article on the IBM site while searching for something else...

Galstonian

I think this works for some Report Expressions but not all.  Examples seem to show query items.
Does anyone know how to add comments in a report expression used for a Text item? 
Using the method described in this thread results in the following:

CRX-YXX-4010 Parsing error on or around position 0 in the expression: #/* comment */#

Lynn

Are you certain there isn't something else that is wrong in your expression? I've used this technique for years on all sorts of expressions and never run into what you are describing.

If you remove the comment does the error persist? If you move the comment to the bottom does the position of the parsing error change? I don't think the comments are including in the position of the expression at all.