on 05-05-2010 2:22 PM
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ã
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.