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

sap.ui.Table multiple selection mode

$
0
0

Hi I am using the sap.ui.table having the multiple row selction mode. how to read all the rows which are selected by click on some button from table.                 

 

aContexts =sap.ui.getCore().byId("tableName").getSelectedIndices();                 

var oTable =sap.ui.getCore().byId("tableName");   

for ( var i=0; i<aContexts.length; i++){       

            var oRow =  oTable.getContextByIndex(aContexts[i]);        

               console.log ("In the if loop-->"+oRow.getObject().columnName);                   

 

}

I want to read the two clumn values in the table which are selected. but it is coming null. Can you share the code. thanks


Viewing all articles
Browse latest Browse all 2638

Trending Articles



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