59 lines
1.8 KiB
XML
59 lines
1.8 KiB
XML
<mvc:View
|
|
controllerName="ui5.walkthrough.controller.InvoiceList"
|
|
xmlns="sap.m"
|
|
xmlns:core="sap.ui.core"
|
|
xmlns:mvc="sap.ui.core.mvc">
|
|
<List
|
|
id="invoiceList"
|
|
class="sapUiResponsiveMargin"
|
|
width="auto"
|
|
items="{
|
|
path : 'invoice>/Invoices',
|
|
sorter : {
|
|
path : 'ShipperName',
|
|
group : true
|
|
}
|
|
}" >
|
|
<headerToolbar>
|
|
<Toolbar>
|
|
<Title text="{i18n>invoiceListTitle}"/>
|
|
<ToolbarSpacer/>
|
|
<SearchField
|
|
width="50%"
|
|
search=".onFilterInvoices"/>
|
|
</Toolbar>
|
|
</headerToolbar>
|
|
|
|
<items>
|
|
<ObjectListItem
|
|
title="{invoice>Quantity} x {invoice>ProductName}"
|
|
number="{
|
|
parts: [
|
|
'invoice>ExtendedPrice',
|
|
'view>/currency'
|
|
],
|
|
type: 'sap.ui.model.type.Currency',
|
|
formatOptions: {
|
|
showMeasure: false
|
|
}
|
|
}"
|
|
numberUnit="{view>/currency}"
|
|
numberState="{= ${invoice>ExtendedPrice} > 50 ? 'Error' : 'Success' }"
|
|
tytpe="Navigation"
|
|
press=".onPres" >
|
|
<firstStatus>
|
|
<objectStatus
|
|
core:require="{
|
|
Formatter: 'ui5/walkthrough/model/formatter'
|
|
}"
|
|
text="{
|
|
path: 'invoice>Status',
|
|
formatter: 'Formatter.statusText.bind($controller)'
|
|
}"/>
|
|
</firstStatus>
|
|
</ObjectListItem>
|
|
</items>
|
|
</List>
|
|
</mvc:View>
|
|
|