Actually, I’m working in Cognos 10.1 report studio. In my report, I have two prompts, one is optional and another prompt is required. I’ve used both the prompt parameters inside the data item for some condition. So, the optional prompt has also turned to required. What should we do to avoid this?
Share
We can use #prompt()# for this. Usually, #prompt()# is used to deliberately force the parameter to hold some value. Instead of using the parameter directly, we should use the #prompt()#.
For example,
Suppose, ?Parameter1? is used in a data item and it holds a integer value, replace it with a #prompt()# like this #prompt(‘Parameter1′,’integer’)#.
Suppose, if the condition is like
it should be,
If we use #prompt()#, we can use the parameter inside the data item, without affecting the prompt’s usage.