How to get selected row index from sap.m.Table

Previously we seen how to create tables in UI5 with different UI controllers and how to get the selected column details from table. In this post we are explaining the way of getting sap.m.Table selected row index. This will be helpful in many situation when we are using table in your application.

Read: How to get selected row data from sap.ui.Table.table.

Note : Table index start with [0].

view1.view.js

view1.controller.js

Output:
table_index

Are you new to SAPUI5? May be you would like to learn SAPUI5 from beginning. Start your learning process with us for FREE!! Read More at SAPUI5 Complete Tutorials