COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: sonny99 on 09 Oct 2013 05:29:02 PM

Title: JavaScript
Post by: sonny99 on 09 Oct 2013 05:29:02 PM
Hello,

I have a value prompt and the selected UI is Check Box. I have a Static Choice called "ALL".
My requirement is:
-  'ALL' is the default selection
- If the user selecst any other option or combination of options,  then 'ALL' option should be unchecked
- if the user unchecks all other options then the "All" option becomes checked again

I need help writing Javascript to achieve this. I have disabled Select All/Deselect All option.

Thanks in advance.
Title: Re: JavaScript
Post by: CognosPaul on 10 Oct 2013 06:04:40 AM
This sounds like a similar request to what one of my readers asked me about. It was an interesting enough problem that I sat down to do it.

http://cognospaul.com/2013/10/08/checking-option-checkbox-prompt/ (http://cognospaul.com/2013/10/08/checking-option-checkbox-prompt/)