Skip to Content
0

[UI5] How to get the previous selectedKey of a sap.m.Select in the change method?

Dec 08, 2017 at 07:44 AM

58

avatar image

Hi experts, I would like to know the previous selectedKey of a sap.m.Select in the onChange method. How could I achieve it? Thank you!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member
Dec 08, 2017 at 09:51 PM
0

Hi Cong

The control does not provide this information so we have to track it ourselves. There are many ways to do this. Here is an example

http://jsbin.com/kagexat/1/edit?html,js,output

Thanks

-D

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you Former Member! I'll track it.

0