Download SAP FIORI Hands on Document PDF

TitleSAP FIORI Hands on Document
File Size2.4 MB
Total Pages41
Document Text Contents
Page 20

Detail.view.xml



































Detail.controller.js
















jQuery.sap.require("sap.ui.demo.myFiori.util.Formatter");
sap.ui.controller("sap.ui.demo.myFiori.view.Detail", {

……………….
………………..

<core:View controllerName="sap.ui.demo.myFiori.view.Detail"
xmlns="sap.m" xmlns:core="sap.ui.core">
<Page title="{i18n>
DetailTitle}" showNavButton="true"
navButtonPress="handleNavButtonPress">
<ObjectHeader title="{SoId}" number="{GrossAmount}"
numberUnit="{CurrencyCode}">
<attributes>
<ObjectAttribute text="{BuyerName}" />
<ObjectAttribute text="{CreatedByBp}" />
<ObjectAttribute text="{

path: 'CreatedAt',
formatter: 'sap.ui.demo.myFiori.util.Formatter.date'
}" />
</attributes>
<firstStatus>
<ObjectStatus text="{
path: 'LifecycleStatus',
formatter:'sap.ui.demo.myFiori.util.Formatter.statusText'
}"
state="{
path: 'LifecycleStatus',
formatter:'sap.ui.demo.myFiori.util.Formatter.statusState'
}" />
</firstStatus>
</ObjectHeader>
</Page>
</core:View>

Similer Documents