COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: inu on 04 Apr 2015 03:01:03 PM

Title: What is the meaning of -1 used in sql based report
Post by: inu on 04 Apr 2015 03:01:03 PM
Hi Team,

#promptmany('Param_Department','string',sq('-1'))# is being used in my sql based report , which is restricting to retrieve the data..

In place of -1 can i put somethingelse.... which should not effect the report output...
Please instruct me and share some ideas , so that problem would be solved...

Regards
Inam
Title: Re: What is the meaning of -1 used in sql based report
Post by: navissar on 05 Apr 2015 04:12:06 PM
That's a macro prompt. The first value is the parameter's name, the second value is the type, the third value is the default value for the parameter if it isn't filled. You can get rid of the default value but then the prompt becomes mandatory.