[Chosen] [Chosen] How to get selected values

[Chosen] [Chosen] How to get selected values

  
Forge Component
(20)
Published on 7 Mar by Jogait
20 votes
Published on 7 Mar by Jogait

Hi,

The Chosen Module looks really great. I am trying to use it as a filter on a dashboard. But I just can't get the selected values in the OnChange ScreenAction. Am I missing something?

How do I get the selected values in Outsystems?

Solution

Hi Jeroen,

You keep using the combo box and list box the same way as before. So you have the variable where the value is stored or the list, in the case of multi-select list.
In an OnChange you have to see those variables/list.

Can you show a small test where you can demonstrate that you are not able to see the variables/list that stores the result?

Cheers,
Eduardo Jauch

Solution

Thanks for your answer.

Apparently the values wont show up in the debugger :(.
You need to put them in a variable to see them.

Hi Jeroen,

Most of the time, this is due optimization.
If the compiler think you are not using the variables, they are not sent, and than the debugger shows them as if they were empty.

Cheers,
Eduardo Jauch