Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

sap.m.select How set the selected Item ID

Hello Forum, 

I have to set dynamically the ID on a sap.m.select.

I tried to put manually a varified value on the NAD Designer but is ignored since is shown the first record.

Any Help?

Thanks.

1 Comment

Hi Salvatrore


You can bind the selectedKey to a FIELD in your STRUCTURE. Then you can update the value in the FIELD to your requested value, and the sap.m.select will set that as the 

default value.


Use the model to change the data. Example: Binded the STRUCTURE to the page PageSearch and the FIELD is VKORG:


modelPageSearch.VKORG = "1000";


Regards

Ole Andre 


Login or Signup to post a comment