| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <mvc:View
- controllerName="sap.ui.demo.orderbrowser.controller.Master"
- xmlns="sap.m"
- xmlns:mvc="sap.ui.core.mvc"
- xmlns:core="sap.ui.core"
- xmlns:semantic="sap.f.semantic">
- <semantic:SemanticPage id="page"
- core:require="{
- formatMessage: 'sap/base/strings/formatMessage',
- DateType: 'sap/ui/model/type/Date'
- }">
- <semantic:titleHeading>
- <Title
- id="masterHeaderTitle"
- text="{
- parts: [
- 'i18n>masterTitleCount',
- 'masterView>/titleCount'
- ],
- formatter: 'formatMessage'
- }"/>
- </semantic:titleHeading>
- <semantic:content>
- <!-- For client side filtering add this to the items attribute: parameters: {operationMode: 'Client'}}" -->
- <List
- id="list"
- width="auto"
- class="sapFDynamicPageAlignContent"
- items="{
- path: '/Orders',
- parameters: {expand: 'Customer'},
- sorter: {
- path: 'OrderID',
- descending: true
- },
- groupHeaderFactory: '.createGroupHeader'
- }"
- busyIndicatorDelay="{masterView>/delay}"
- mode="{= ${device>/system/phone} ? 'None' : 'SingleSelectMaster'}"
- growing="true"
- growingScrollToLoad="true"
- updateFinished=".onUpdateFinished"
- selectionChange=".onSelectionChange">
- <noData>
- <IllustratedMessage
- title="{masterView>/noDataText}"
- illustrationType="sapIllus-NoFilterResults"
- enableDefaultTitleAndDescription="false"/>
- </noData>
- <infoToolbar>
- <Toolbar
- active="true"
- id="filterBar"
- visible="{masterView>/isFilterBarVisible}"
- press=".onOpenViewSettings">
- <Title
- id="filterBarLabel"
- text="{masterView>/filterBarLabel}" />
- </Toolbar>
- </infoToolbar>
- <headerToolbar>
- <OverflowToolbar>
- <SearchField
- id="searchField"
- showRefreshButton="true"
- tooltip="{i18n>masterSearchTooltip}"
- width="100%"
- search=".onSearch">
- <layoutData>
- <OverflowToolbarLayoutData
- minWidth="150px"
- maxWidth="240px"
- shrinkable="true"
- priority="NeverOverflow"/>
- </layoutData>
- </SearchField>
- <ToolbarSpacer/>
- <Button
- id="filterButton"
- press=".onOpenViewSettings"
- icon="sap-icon://filter"
- type="Transparent"/>
- <Button
- id="groupButton"
- press=".onOpenViewSettings"
- icon="sap-icon://group-2"
- type="Transparent"/>
- </OverflowToolbar>
- </headerToolbar>
- <items>
- <ObjectListItem
- type="{= ${device>/system/phone} ? 'Active' : 'Inactive'}"
- press=".onSelectionChange"
- title="{
- parts: [
- 'i18n>commonItemTitle',
- 'OrderID'
- ],
- formatter: 'formatMessage'
- }"
- number="{
- path: 'OrderDate',
- type: 'DateType',
- formatOptions: { style: 'short' }
- }">
- <firstStatus>
- <ObjectStatus
- state="{
- parts: [
- {path: 'RequiredDate'},
- {path: 'ShippedDate'},
- {path: 'OrderID'}
- ],
- formatter:'.formatter.deliveryState'
- }"
- text="{
- parts: [
- {path: 'RequiredDate'},
- {path: 'ShippedDate'},
- {path: 'OrderID'}
- ],
- formatter:'.formatter.deliveryText'
- }"/>
- </firstStatus>
- <attributes>
- <ObjectAttribute id="companyName" text="{Customer/CompanyName}" />
- <ObjectAttribute title="{i18n>commonItemShipped}"
- text="{= ${ShippedDate}
- ? ${ path: 'ShippedDate',
- type: 'DateType',
- formatOptions: { style: 'medium' } }
- : ${i18n>commonItemNotYetShipped} }" />
- </attributes>
- </ObjectListItem>
- </items>
- </List>
- </semantic:content>
- </semantic:SemanticPage>
- </mvc:View>
|