Skip to Content

SAPUI5 Function Import question

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

screenshot.png (31.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 17, 2017 at 05:05 PM

    You can use the function getSelectedKey

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

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2017 at 05:57 AM

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

    Add comment
    10|10000 characters needed characters exceeded