I am using the sap.m.ObjectListItem
as my list items to which I have bound JSON data from an API. However, I can't find a way to get the selected item from the list when I press on an item. Even getting the key of that item would be helpful.
<List id="ObjectList"
itemPress=".onPressDcData"
items="{DC>/}"
>
<ObjectListItem
type="Active"
title="{DC>Name}"
/>
</List>