Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

How to get data of a clicked row in sap.m.table

$
0
0

Hi,

 

I am displaying a table in View 1. In of the column I am displaying an icon. On press of the icon, I have to display a dialog box with 4 fields in a form layout. These fields are editable. These 4 fields are part of the Table in View 1 (but are not displayed in View 1).

I need to update the values for these 4 fields for each row respectively.

 

I am able to display the dialog on click of that icon using Fragments. But not able to transfer the data from clicked row to the Dialog Box.

Please can anyone tell me how to capture the clicked row data.

 

Because my Table has mode="MultiSelect", so it has checkbox to select.

 

Now in my controller on click of the ICON, I am not getting the data by using this --> this.getView().byId("Table").getSelectedItem();

 

Which Method shall i use to capture the clicked row of a table


Viewing all articles
Browse latest Browse all 9069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>