COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: platipuss on 02 Mar 2010 10:56:59 AM

Title: Conditional security filters
Post by: platipuss on 02 Mar 2010 10:56:59 AM
What I am trying to do logically is

if(#prompt('pmt','INTEGER','-1')# > 0)
then(
     data item in (select * from table where id = #prompt('pmt','INTEGER','-1')#)
)
else(
     do nothing
)


I know the filter will except something like

dataitem = if(1=1)then( 1 ) else ( 0 )

but I don't see a way to solve this problem with that syntax.

Thank you
Title: Re: Conditional security filters
Post by: platipuss on 02 Mar 2010 02:46:30 PM
if (a) then
(b)
else
(c)

Use:

(a and b) OR ((not a) and c)

Just thought I would share