COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Jeka on 13 Oct 2008 10:12:57 AM

Title: Caption(.....
Post by: Jeka on 13 Oct 2008 10:12:57 AM
Hi,
I know I can use caption function to pass the label when I’m performing a drill-through.
I can build a dataitem with caption([Dimension]), this will pass the label.

If i need to pass the label for the parameter (prompt), is it possible to do?

Thank-you!
Title: Re: Caption(.....
Post by: Jeka on 13 Oct 2008 02:53:02 PM
Anyone?


Thank-you!
Title: Re: Caption(.....
Post by: tmckay on 14 Oct 2008 11:05:19 AM
Hello Nichole,

Not sure if you need the name of the parameter or the control.
If it's the parameter, you can use:
ParamName('parameterName')
Returns parameter name of the variable identified by parameterName.
Title: Re: Caption(.....
Post by: Jeka on 14 Oct 2008 12:40:42 PM
When I'm passing the parameter value to the child report, I pass SID's. Like '88'. Bit i need to pass the label not the SID. The only way i know how to pass the label is to use Caption(..... in the report and then specify to pass dataitem value.

But how can i use caption( for a parameter????


Thank-you!