COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: FatCat on 22 Jan 2008 03:22:14 PM

Title: Dynamic Select Prompt Display AS
Post by: FatCat on 22 Jan 2008 03:22:14 PM
I want to dynamically display the values in a prompt.
However I know of one code that needs to be translated.

Ex.

'abc' = 'Red'

I do not want to do a Static Collection because it is possible other codes may enter
the table.


If I do a case statement on the table the issue is the parameter gets set to the case statement condition which does not exist in the table.

Ex.

Case when

column='abc' then 'Red'

else column

The parameter will be set to RED thus making the filter on the main query useless.

Thoughts???
Title: Re: Dynamic Select Prompt Display AS
Post by: jethro89 on 11 Feb 2008 04:00:10 PM
Hi, you can combine a static list and the dynamic query in a prompt. I would have your query, but filter out the value you need to translate, then in the static list, do your translation. Let me know if you have any issues or if this doesn't help.
Hope this helps.
anita