Skip to Content
0

how to implement sap.ui.table events.

Feb 13 at 12:17 PM

42

avatar image
Former Member

Hi,

i am using sap.ui.table.

i want to get the values of the row when selected or deselected.

i am usign mode as "MultiSelect".

currently i am using "rowSelectionChange". from that i will use the oEvent.getParameter("id"), using this i will get the table id. and from that i will use getSelectedIndices() or getSelectedIndex(). but this doesn't return the index on deselect of row..

when i was searching for alternative i found the below below data...

in that i have

1. rowindex

2.rowIndices

can someone please tell me how to use this and get the index of selected or deselected row in the table.

sap-ui-table.jpg (89.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Prachi Chaskar Mar 09 at 09:09 AM
0

Hi Chandresh,

try below code:

rowSelectionChange: function(oEvent){

var oRowIndex = oEvent.getParameters().rowIndex;

alert(oRowIndex);

var oRowIndices = oEvent.getParameters().rowIndices;

alert(oRowIndices);

}

Thanks,

Prachi

Share
10 |10000 characters needed characters left characters exceeded