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

 

JavaScript Cognos Prompt API to disable a prompt based on another prompt

Started by svb, 05 Dec 2016 10:29:47 AM

Previous topic - Next topic

svb

Hi,

Can some one please help me with JavaScript?I'm on version 10.2

Here's what I am trying to achieve:

There are 2 prompts Prompt1 and Prompt 2. Both are optional prompts.
Prompt 1 has two values: abc and xyz.
Prompt 2 has multiple values and should always be grayed out/disabled.

If user selects 'abc' from Prompt 1, Prompt 2 should be enabled.

I tried with render variables, the problem is I don't want to hide the prompt, only disable or gray out.

Thanks.