cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown event onSelect (get previous ID)

joo_ferreira
Participant
0 Kudos

Hi all!

Another Dropdown question

Does anyone know how i can access the old value a dropdown box? I have an event onSelect that receives the current id of the dropdown box, but i want to get also the previous value.

It's some kind of validation, if the user enters an invalid option in the dropdown, the last value will appear.

Dropdown values are a IModifiableSimpleValueSet, and the dropdown is in a table.

Greetings,

Joã

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If you need this functionality, you have to store the selected key additionally in another context attribute under the table's data source node. After the selection of another list item and a server roundtrip, the context attribute to which the "selectedKey" property is bound will always contain the new selected key and the old selected key is overwritten.

Armin