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

 

How to automatically deselect static choice in prompt after entering value(s)

Started by hanfrie, 25 Jul 2014 07:09:54 AM

Previous topic - Next topic

hanfrie

I have a mandatory check box multi-select prompt that uses a Static Choise value 'None', and it's working fine. But in practice this value must be deselected manually by the user when it wants to select one (or more) values from the displayed list (obviously then chosing for something other then "None") because it stays selected when the user doesn't explicitly deselects it.
I am relatively new to Cognos and couldn't find a description of how to achieve an automatic deselection of this Static choice value after selecting another value.

bdbits

Just a couple ideas... Why not make the prompt optional, with no default value? Or another alternative might be when they select "None" disable the other options, and force them to uncheck "None" before allowing the other selections.

hanfrie

The prompt in question is mandatory with a reason, as is the Static choice (this is why: http://www.cognoise.com/index.php/topic,25419.0.html). So I'm interested in your second option. How can this be accomplished?
[edit] As extra information: the prompt is a multi-select prompt.

bdbits

I was thinking along the lines of a javascript solution. It matters what version of Cognos you are on. If it is a recent version, there is a javascript API that might help protect the javascript from breaking in future Cognos releases, but from what I know there will still be some custom javascript involved. If you are not familiar with javascript, you will need help as this is not a simple one-liner and will have specifics in the code for your particular report prompts.


hanfrie

Thanks all, I will try the JS solution. Have no knowledge of JS at all but it will be a nice start I guess....