COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: svb on 05 Dec 2016 10:29:47 AM

Title: JavaScript Cognos Prompt API to disable a prompt based on another prompt
Post by: svb on 05 Dec 2016 10:29:47 AM
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.