cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Function Import question

smith_john
Active Participant
0 Kudos

Hi, I'm new to UI5 so please would someone help me out.

I have created an App which has some data displayed on the screen and a button on the footer toolbar, when this button is pressed I want to call a function import to execute some logic in the backend and return a message (I have the backend stuff taken care of)

In my App I have some data displayed on the screen from my model in the backend, I want to get the key for entry shown on the screen (the key for the record shown is a GUID which is not displayed to the user for obvious reasons) ... how do I get the key for the selected value in the select box so that I can pass it to my function import?

thanks

smith_john
Active Participant
0 Kudos

Thanks, That method did the trick!

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor

You can use the function getSelectedKey

https://sapui5.hana.ondemand.com/#/api/sap.m.Select

Regards,

Jamie

Answers (1)

Answers (1)

junwu
Active Contributor

usually you will bind the selectedkey to the model, so you can get it easily from model.