Forum

Jennifer Häfner
Moderator
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
    Has successfully completed the online course Advanced (310)
    Has successfully completed the online course Advanced (320)
    Has successfully completed the Intermediate Certification
    Has successfully completed the Advanced Certification
2 years, 11 months ago #33578
Up
1
Down
::

Hi Philipp,

to extract the selected item in the TableSelectDialog after the event ‘confirm’, you need the following UI5 syntax:
oEvent.getParameter("selectedItem").getBindingContext(<bindingContext>).getObject();
 

The binding context depends on how you map your data to your table. If you store the data in a global variable first and then map this global variable to the table, the binding context is ‘variableHolder’.

If you map the data using data source, the binding context is the respective screen name where the dialog is placed in the UI Designer. In this case, you can simply use the Client-Side Business Object function ‘ITIZ_Utilities – getSelectedItem’, which will return the selected item object.

Just let me know if you have any further questions.