Advertisement
JaviSP

invoicelistview04

Jun 24th, 2019
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.25 KB | None | 0 0
  1. <mvc:View
  2.   controllerName="saptools.demo.controller.InvoiceList"
  3.   xmlns="sap.m"
  4.   xmlns:mvc="sap.ui.core.mvc">
  5.    <List
  6.       id="invoiceList"
  7.      headerText="{i18n>invoiceListTitle}"
  8.       class="sapUiResponsiveMargin"
  9.       width="auto"
  10.       items="{
  11.          path : 'invoice>/Invoices',
  12.          sorter : {
  13.             path : 'ProductName'
  14.          }
  15.       }" >
  16.       <headerToolbar>
  17.          <Toolbar>
  18.             <Title text="{i18n>invoiceListTitle}"/>
  19.             <ToolbarSpacer/>
  20.             <SearchField width="50%" search=".onFilterInvoices"/>
  21.          </Toolbar>
  22.       </headerToolbar>
  23.       <items>
  24.          <ObjectListItem
  25.            title="{invoice>Quantity} x {invoice>ProductName}"
  26.             number="{
  27.             parts: [{path: 'invoice>ExtendedPrice'}, {path: 'view>/currency'}],
  28.             type: 'sap.ui.model.type.Currency',
  29.             formatOptions: {
  30.                 showMeasure: false
  31.             }
  32.             }"
  33.             numberUnit="{view>/currency}"
  34.             numberState="{= ${invoice>ExtendedPrice} > 50 ? 'Error' : 'Success' }"
  35.             type="Navigation"
  36.             press="onPress">
  37.             <firstStatus>
  38.                 <ObjectStatus text="{
  39.                     path: 'invoice>Status',
  40.                     formatter: '.formatter.statusText'
  41.                 }"/>
  42.             </firstStatus>
  43.         </ObjectListItem>
  44.       </items>
  45.    </List>
  46. </mvc:View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement