COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: SimoCogn on 25 Jul 2016 11:52:31 AM

Title: How call javascript onClick event on checkbox prompt
Post by: SimoCogn on 25 Jul 2016 11:52:31 AM
Hi all,
i need to implement a check on the values of two multivalue checkbox prompts in a report:
i'll call it prompt A and prompt B.

Initally prompt A is selected by default and prompt B is all unselected. The two prompt must be mutually exclusive, so when i select (click) a checkbox of prompt A , i must unselect all values of prompt B, and if i select a checkbox of prompt B , i must unselect all values of prompt A.

I have thinked to create a javascript that unselect all the values of prompt A or B, but my problem is that i don't know how to start this script onClick event on the two checkbox prompt. I use cognos version 10.2


Thanks for any suggestions

regards
Simon