I am trying to select the first item of list in Master view. I am doing this from Detail controller. I am able to select the item in the list but it does not fire the event to display the details in Detail view.
Master.view.xml
<List id="idMasterList" mode="{device>/listMode}" select="onSelect"
noDataText="{i18nMaster>masterListNoDataText}"
items="{ path: '/', sorter: {path: 'name'} }" icon="sap-icon://refresh">
<items>
<StandardListItem id="idStandardItem" type="{device>/listItemType}"
tooltip="{name}"
title="{name}"
info="{total}/{due}"
/>
</items>
</List>
Detail.controller.js
sap.ui.getCore().byId("__xmlview2--idMasterList").getItems()[0].setSelected(true);
I could not find any information which can directly solve this (or) i did not get it!!!
Any help is appreciated.
Thanks