Skip to Content
0
May 24, 2020 at 01:39 PM

SAPUI5: How to get all the selected Interactions/Items of a Table

224 Views Last edit May 24, 2020 at 01:41 PM 3 rev

Hello,

as the title states i do have the following model:

{
  "modelExample" : [
    {"Title":"First", "Option":["Yes","No","Unknown"]},
    {"Title":"Second","Option":["Yes","No","Unknown"]},
    {"Title":"Third", "Option":["Yes","No","Unknown"]},
  ]
}

Which builds the following Table:

When pressing "Items" i want to get all the Iteractions/buttons which were pressed as well as corresponding Row- Information.

Example: First Row: "Title":"First", "Option":"Not Selected", Second Row: "Title":"Second", "Option":"Yes", Third Row: "Title":"Third", "Option":"No".

Possible Methodology: Iterate through Table, check everything and build a new JSONModel with the information.

Question: How do i get the information in a SAPUI5 way?

Attachments

modeltable.png (65.2 kB)