COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: mrcool on 04 May 2016 12:17:52 AM

Title: Clear Hidden prompts using API
Post by: mrcool on 04 May 2016 12:17:52 AM
Hi All,

I am using prompt API to clear all the prompts but the the API doesn't clear the prompts which are in conditional blocks. Is it possible to clear the hidden prompts?


Thanks,
Mc
Title: Re: Clear Hidden prompts using API
Post by: navissar on 05 May 2016 10:43:47 AM
Prompts in a conditional block under a value that isn't currently selected are not hidden. They are not rendered - they are nowhere on the page. Any script you would run will only affect items which are rendered (In the DOM, exist within the report), so your script cannot possibly do anything to prompts which are in a conditional block in a block not currently rendered.
You'll have to replicate the conditional block's value using javascript to manipulate showing and hiding real blocks after rendering. Javascript in reports tends to procreate like this.