Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.75 KB | None | 0 0
  1. <mvc:View
  2.     displayBlock="true"
  3.     xmlns:core="sap.ui.core"
  4.     xmlns:l="sap.ui.layout"
  5.     xmlns:f="sap.ui.layout.form"
  6.     xmlns:mvc="sap.ui.core.mvc"
  7.     xmlns="sap.m"
  8.     controllerName="opensap.myapp.controller.App">
  9.     <App>
  10.         <pages>
  11.             <Page title="openSAP - Developing with SAPUI5">
  12.                 <content>
  13.                     <IconTabBar id="idTopLevelIconTabBar" class="sapUiResponsiveContentPadding">
  14.                         <items>
  15.                             <IconTabFilter id="start" text="{i18n>gettingStartedFilter}">
  16.                                 <Carousel class="myAppCrs1">
  17.                                     <pages>
  18.                                         <Image src="images/img1.jpg" height="400px"/>
  19.                                         <Image src="images/img2.jpg" height="400px"/>
  20.                                     </pages>
  21.                                 </Carousel>
  22.                                 <Button text="{i18n>showHelloButtonText}" press="onShowHello"/>
  23.                                 <Input
  24.                                     value="{
  25.                                         path: 'helloPanel>/recipient/name',
  26.                                         type: 'sap.ui.model.type.Float',
  27.                                         formatOptions : {
  28.                                             minFractionDigits : 2
  29.                                         },
  30.                                         constraints: {
  31.                                             maximum: 3000
  32.                                         }
  33.                                     }"
  34.                                     description="Hello {helloPanel>/recipient/name}"
  35.                                     width="60%"/>
  36.                             </IconTabFilter>
  37.                             <IconTabFilter id="layouts" text="{i18n>layoutFilter}">
  38.                                 <MessageStrip type="Information" showIcon="true" text="Here's a Form Layout inside an Icon Tab Bar …"></MessageStrip>
  39.                                 <f:SimpleForm id="simpleFormChange" title="Address" editable="true" class="editableForm sapUiSmallMarginTopBottom">
  40.                                     <f:content>
  41.                                         <Label text="{i18n>layoutFormName}"/>
  42.                                         <Input value="{address>/Name}"/>
  43.                                         <Label text="{i18n>layoutFormStreet}"/>
  44.                                         <Input value="{address>/Street}"/>
  45.                                         <Label text="{i18n>layoutFormHouseNumber}"/>
  46.                                         <Input value="{address>/HouseNumber}"/>
  47.                                         <Label text="{i18n>layoutFormZIPCode}"/>
  48.                                         <Input value="{address>/ZIPCode}"/>
  49.                                         <Label text="{i18n>layoutFormCity}"/>
  50.                                         <Input value="{address>/City}"/>
  51.                                         <Label text="{i18n>layoutFormCountry}"/>
  52.                                         <Select>
  53.                                             <items>
  54.                                                 <core:Item text="{i18n>layoutCountryGermany}"/>
  55.                                                 <core:Item text="{i18n>layoutCountryUSA}"/>
  56.                                                 <core:Item text="{i18n>layoutCountryEngland}"/>
  57.                                             </items>
  58.                                         </Select>
  59.                                     </f:content>
  60.                                 </f:SimpleForm>
  61.                                 <Toolbar class="sapUiSmallMarginTopBottom">
  62.                                     <ToolbarSpacer/>
  63.                                     <Button text="{i18n>layoutPublishButton}" type="Accept" icon="sap-icon://outbox"/>
  64.                                     <Button text="{i18n>layoutDraftButton}" icon="sap-icon://save"/>
  65.                                 </Toolbar>
  66.                             </IconTabFilter>
  67.                             <IconTabFilter text="{i18n>dataBindingFilter}" key="db">
  68.                                 <List
  69.                                     id="productsList"
  70.                                     width="auto"
  71.                                     items="{
  72.                                         path: '/ProductSet',
  73.                                         sorter: {
  74.                                             path: 'Category',
  75.                                             group: true
  76.                                         },
  77.                                         parameters: {
  78.                                             expand: 'ToSupplier'
  79.                                         }
  80.                                     }"
  81.                                     growing="true"
  82.                                     growingThreshold="5"
  83.                                     growingScrollToLoad="false"
  84.                                     mode="SingleSelectMaster"
  85.                                     selectionChange="onItemSelected">
  86.                                     <headerToolbar>
  87.                                         <Toolbar>
  88.                                             <Title text="{i18n>productListTitle}"/>
  89.                                             <ToolbarSpacer/>
  90.                                             <SearchField width="50%" search="onFilterProducts"/>
  91.                                         </Toolbar>
  92.                                     </headerToolbar>
  93.                                     <items>
  94.                                         <ObjectListItem
  95.                                             title="{Name}"
  96.                                             number="{
  97.                                                 parts: [
  98.                                                     {path: 'Price'},
  99.                                                     {path: 'CurrencyCode'}
  100.                                                 ],
  101.                                                 type: 'sap.ui.model.type.Currency',
  102.                                                 formatOptions: {
  103.                                                     showMeasure: false
  104.                                                 }
  105.                                             }"
  106.                                             numberState="{= ${Price} > 500 ? 'Error' : 'Success'}"
  107.                                             intro="{ProductID}"
  108.                                             numberUnit="{CurrencyCode}">
  109.                                             <firstStatus>
  110.                                                 <ObjectStatus
  111.                                                     text="{ parts: [
  112.                                                         {path: 'WeightUnit'},
  113.                                                         {path: 'WeightMeasure'} ],
  114.                                                     formatter : '.formatter.delivery'
  115.                                                 }"/>
  116.                                             </firstStatus>
  117.                                             <secondStatus>
  118.                                                 <ObjectStatus
  119.                                                     title="Delivered from"
  120.                                                     text="{ToSupplier/Address/City}"/>
  121.                                             </secondStatus>
  122.                                         </ObjectListItem>
  123.                                     </items>
  124.                                 </List>
  125.                                 <Panel
  126.                                     id="productDetailsPanel"
  127.                                     headerText="Product Details"
  128.                                     visible="false">
  129.                                     <l:Grid>
  130.                                         <Text text="Product ID: {ProductID}"/>
  131.                                         <Text text="Product Name: {Name}"/>
  132.                                         <Text text="Description: {Description}"/>
  133.                                         <Text text="Price: {Price}"/>
  134.                                     </l:Grid>
  135.                                 </Panel>
  136.                             </IconTabFilter>
  137.                         </items>
  138.                     </IconTabBar>
  139.                 </content>
  140.             </Page>
  141.         </pages>
  142.     </App>
  143. </mvc:View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement