Hi,
We have built a SAPUI5 application using the Fiori Master template in webide (ORION) which displays data coming CRM. It's nothing fancy... We are setting the markedLocked property in the ObjectListItem to true when a record in being locked in the backend. It’s working fine from the gateway (SE80) or in the webide, when a record is locked in the backend the odata model returns a locked flag and I can see the lock icon in my main list. But when I run this application from the SAP FIORI Launchpad, the icon is not displayed when the markedLocked is set to true. In debugging I can see clearly that the formatter function is returning true. You will find below my code :
<Page
id="masterPage"
title="{i18n>masterTitle}">
<subHeader
id="masterSubHeader">
</subHeader>
<content>
<List id="list"
select="onSelect"
mode="{device>/listMode}"
noDataText="{i18n>masterListNoDataText}"
growing="true"
growingScrollToLoad="true"
includeItemInSelection="true"
items="{/InteractionRecordListSet}">
<items id="masterList">
<ObjectListItem
id="mainListItem"
press="onSelect"
type="{device>/listItemType}"
counter="0"
title="{CustBp}"
number="{ path: 'PostingDate',
formatter: 'xxx.xxx.InteractionRecords.util.Formatter.date'}"
numberUnit="{PostingTime}"
markLocked="{ path: 'Locked',
formatter: 'xxx.xxx.InteractionRecords.util.Formatter.locked'}">
....
My locked function is simply returning true/false if the Locked field (returned by the odata call) is set:
locked : function (value){
if (!value){
return false;
}else{
return true;
}
}
Here is the version of our Sapui5 libraries used in the launchpad:
}
},
So my question is why is it not working in the Launchpad? Could it be due to the version of the sapui5 libraries? I'm stuck...
Could you help me please?
Cheers
Laurent.
Message was edited by: Laurent DUBOIS
Hi,
I fixed the issue by replacing the semantic object navigation with Target URL in the Tile configurator. It seems that the launchpad doesn't replace my sapui5 librairies in this case. So it's definitely linked to the local SAPUI5 libraries in the gateway....
cheers,
Laurent.