Clear combo box selected elements

sfilho
New Contributor III

I created a combo box in a dashboard and the combo box is associated with a parameter that provides a considerable list of elements for selection. The user would like to have a button to clear all the selected elements as needed.

Would you know of any alternative to clear the selected elements from the combo box?

Thank you for all the help.

 

1 ACCEPTED SOLUTION

ChristianW
Valued Contributor

You can do it with a simple dashboard extender business rule.

View solution in original post

9 REPLIES 9

ChristianW
Valued Contributor

You can do it with a simple dashboard extender business rule.

Krishna
Valued Contributor

I agree but I tried and it is not working.  the below is the code in the ComponentSelectionChanged not sure what am missing.  IN the below code I am passing 2 parameters one is the ComboBox Name and the other is the empty string.

 

 

 

selectionChangedTaskResult.ChangeCustomSubstVarsInDashboard = True
selectionChangedTaskResult.ModifiedCustomSubstVars.Add("cb_CC","")

Thanks
Krishna

ChristianW
Valued Contributor

Did you return the selectionChangedTaskResult at the end?

Did you refresh the dashboards containing the drop-down boxes?

Krishna
Valued Contributor

Yes Return selectionChangedTaskResult and I did refresh. 

Thanks
Krishna

Krishna
Valued Contributor

I created a Button and passed the Extender rule 

Kris_0-1680710590762.png

 

Thanks
Krishna

ChristianW
Valued Contributor

Is there a default specified for the parameter?

Krishna
Valued Contributor

Yes I tried with & w/o as well.

Thanks
Krishna

Krishna
Valued Contributor

It is a mutiselect ComboBox

Thanks
Krishna

Krishna
Valued Contributor

I found the issue. I was passing the COmbobox Name Vs Param Name once I pass it is working. Thanks.

Thanks
Krishna