Skip to Content

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

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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

    Add comment
    10|10000 characters needed characters exceeded