COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Vick on 24 Jan 2009 05:41:55 PM

Title: Conditional blocks
Post by: Vick on 24 Jan 2009 05:41:55 PM
Hello,
         Has anybody used conditional blocks in Report Studio. I have a list report which I need to display in only excel,xml and html formats if it is ran outside this formats than I need to display a message asking user to run it only in excel,xml or html.

I know I need to use Conditional blocks in order to accomplish this but I have not used it before and having some difficulty.

Any help is appreciated.

Thanks,
Vick.
Title: Re: Conditional blocks
Post by: cognosjon on 26 Jan 2009 01:50:09 AM
Hi Vick,

Off the top of my head I don't think that conditional blocks give you the ability to apply a render variable against them. Your safest best is probably to create duplicate pages of your report and then apply a render variable against each page to declare when it should be rendered, you can simply use the 'ReportOutput' function when defining your variable.
Not so sure though which reportout is used for Excel.

Have a play and see how you get on.