Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <mvc:View
- controllerName="saptools.demo.controller.InvoiceList"
- xmlns="sap.m"
- xmlns:mvc="sap.ui.core.mvc">
- <List
- id="invoiceList"
- headerText="{i18n>invoiceListTitle}"
- class="sapUiResponsiveMargin"
- width="auto"
- items="{
- path : 'invoice>/Invoices',
- sorter : {
- path : 'ProductName'
- }
- }" >
- <headerToolbar>
- <Toolbar>
- <Title text="{i18n>invoiceListTitle}"/>
- <ToolbarSpacer/>
- <SearchField width="50%" search=".onFilterInvoices"/>
- </Toolbar>
- </headerToolbar>
- <items>
- <ObjectListItem
- title="{invoice>Quantity} x {invoice>ProductName}"
- number="{
- parts: [{path: 'invoice>ExtendedPrice'}, {path: 'view>/currency'}],
- type: 'sap.ui.model.type.Currency',
- formatOptions: {
- showMeasure: false
- }
- }"
- numberUnit="{view>/currency}"
- numberState="{= ${invoice>ExtendedPrice} > 50 ? 'Error' : 'Success' }"
- type="Navigation"
- press="onPress">
- <firstStatus>
- <ObjectStatus text="{
- path: 'invoice>Status',
- formatter: '.formatter.statusText'
- }"/>
- </firstStatus>
- </ObjectListItem>
- </items>
- </List>
- </mvc:View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement