title: How to retrieve selected record or its' index in sap.ui.table.Table?
body: <p>I have implemented a Tree Table in sapui5 with 'multitoggle' mode. I am trying to get the selected row or its index.
  For the index, I have used the function <code>getSelectedIndex();</code>
  But it returns -1 for the records that have been collapsed under a particular record.</p>
  
  <p>Also, is there any other way to get the selected record (instead of index) from a Tree Table?</p>
  
  <p>Kindly help. Thanks :)</p>