If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Clear Hidden prompts using API

Started by mrcool, 04 May 2016 12:17:52 AM

Previous topic - Next topic

mrcool

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

navissar

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.