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

Re: Selecting the List item from List based on id

$
0
0

Hi Chiranjeevi,

 

To fetch the index from ID :

var oID = oControlEvent.getParameter("id");
var oIndex = parseInt(oID.slice(-1));

It is more efficient way to do with model concept as Vaibhav suggested.

var oListItem = oControlEvent.getParameter("listItem");
var oContext = oListItem.getBindingContext().getObject();          //This will fetch you all details related to list item selected.

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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