COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: alex_ on 14 Dec 2012 09:25:47 AM

Title: How can restrict the choice in prompt?
Post by: alex_ on 14 Dec 2012 09:25:47 AM
Hi,

I have a prompt, which can be filtered by the following values: A, R, G and NULL.
These values are coming from one column in database.

How can restrict the choice to: 'A' and 'R', and to hide 'G' and NULL.
Prompt must to show only: 'A' and 'R'

Thanks.
Title: Re: How can restrict the choice in prompt?
Post by: MFGF on 14 Dec 2012 09:29:15 AM
Assuming your prompt values are being retrieved via a prompt query in the report, just go to that prompt query and add a detail filter with the expression

[your prompt data item] is not null

Cheers!

MF.
Title: Re: How can restrict the choice in prompt?
Post by: alex_ on 14 Dec 2012 09:55:04 AM
Thanks,
of course.  :)  ;D