I have Multi-Pick list that when its values are checked it will Activate a condition in another model based upon what was selected. This works great except when the user clicks "UnCheck All" and the condition appears to get set to "None" and thus my models return no data. Additionally, I would also like to be able to default the Multi Picklist to be "All Values" rather than only one.
Jeff McBride
Matt Sones, Champion
Yes, you'll need some javascript.
How are you setting the values for the condition in the first place?
Assuming you're using the action framework, it will probably be as simple as a "nullCheck" script like this:
The action framework sequence will only continue if the snippet returns true. If it returns false, it will perform any "error actions" that you set up. (such as "deactivate" and "query")
Jeff McBride
Matt Sones, Champion
So, make the first action of your action sequence that runs when MARKET_UI is updated "Run a skuid javascript snippet"
Here's your snippet:
Then, add these two actions in the "error sequence" of that snippet in the action framework:
Your full action framework should look something like this:
1. Run snippet
---- ! 1. Deactivate Condition
---- ! 2. Query Model
2. Activate and Set Value
3. Query Model
Jeff McBride
Matt Sones, Champion