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

Re: searching for the method similar as getSelectedRow in SAP UI5

$
0
0

Hi Sukanya,

 

You could try using the getContextByIndex method, I think this should be able to refer you back to the correct data in your model, even after your table is sorted, filtered or column shuffled...something like this:

 

selectedContext = oTable.getContextByIndex(oTable.getSelectedIndex());
myValue = oModel.getProperty("myval",selectedContext); 
console.log(myValue);

 

Regards,

Ian


Viewing all articles
Browse latest Browse all 10548

Trending Articles



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