on 10-17-2017 5:01 PM
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
You can use the function getSelectedKey
https://sapui5.hana.ondemand.com/#/api/sap.m.Select
Regards,
Jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
usually you will bind the selectedkey to the model, so you can get it easily from model.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.