| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <mvc:View | ||
| xmlns="sap.m" | ||
| xmlns:mvc="sap.ui.core.mvc"> | ||
| <Page | ||
| title="{i18n>detailPageTitle}"> | ||
| <ObjectHeader | ||
| title="Invoice"/> | ||
| </Page> | ||
| </mvc:View> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| sap.ui.define([ | ||
| "sap/ui/core/mvc/Controller" | ||
| ], function (Controller) { | ||
| "use strict"; | ||
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.Detail", { | ||
|
|
||
| onInit: function () { | ||
| var oRouter = this.getOwnerComponent().getRouter(); | ||
| oRouter.getRoute("detail").attachPatternMatched(this._onObjectMatched, this); | ||
| }, | ||
|
|
||
| _onObjectMatched: function (oEvent) { | ||
| this.getView().bindElement({ | ||
| path: "/" + window.decodeURIComponent(oEvent.getParameter("arguments").invoicePath), | ||
| model: "invoice" | ||
| }); | ||
| } | ||
| }); | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| <mvc:View | ||
| controllerName="sap.ui.demo.walkthrough.controller.Detail" | ||
| xmlns="sap.m" | ||
| xmlns:mvc="sap.ui.core.mvc"> | ||
| <Page | ||
| title="{i18n>detailPageTitle}"> | ||
| <ObjectHeader | ||
| intro="{invoice>ShipperName}" | ||
| title="{invoice>ProductName}"/> | ||
| </Page> | ||
| </mvc:View> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,15 @@ | ||
| <mvc:View | ||
| controllerName="sap.ui.demo.walkthrough.controller.Detail" | ||
| xmlns="sap.m" | ||
| xmlns:mvc="sap.ui.core.mvc" | ||
| xmlns:wt="sap.ui.demo.walkthrough.control"> | ||
| <Page | ||
| title="{i18n>detailPageTitle}" | ||
| showNavButton="true" | ||
| navButtonPress=".onNavBack"> | ||
| <ObjectHeader | ||
| intro="{invoice>ShipperName}" | ||
| title="{invoice>ProductName}"/> | ||
| <wt:ProductRating id="rating" class="sapUiSmallMarginBeginEnd" change=".onRatingChange"/> | ||
| </Page> | ||
| </mvc:View> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ sap.ui.define([ | |
|
|
||
| return Controller.extend("sap.ui.demo.walkthrough.controller.App", { | ||
|
|
||
| }); | ||
|
|
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
| specVersion: '2.5' | ||
| metadata: | ||
| name: WalkthroughTutorial | ||
| type: application | ||
| framework: | ||
| name: OpenUI5 | ||
| version: 1.93.0 | ||
| libraries: | ||
| - name: sap.ui.core | ||
| - name: sap.m | ||
| - name: themelib_sap_fiori_3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,75 +1,80 @@ | ||
| <mvc:View | ||
| controllerName="sap.ui.demo.walkthrough.controller.InvoiceList" | ||
| xmlns="sap.m" | ||
| xmlns:mvc="sap.ui.core.mvc" | ||
| xmlns:core="sap.ui.core"> | ||
| <Panel accessibleRole="Region"> | ||
| <headerToolbar> | ||
| <Toolbar> | ||
| <Title text="{i18n>invoiceListTitle}"/> | ||
| <ToolbarSpacer/> | ||
| <SearchField | ||
| width="50%" | ||
| search=".onFilterInvoices"/> | ||
| </Toolbar> | ||
| </headerToolbar> | ||
| <Table | ||
| id="invoiceList" | ||
| class="sapUiResponsiveMargin" | ||
| width="auto" | ||
| items="{ | ||
| path : 'invoice>/Invoices', | ||
| sorter : { | ||
| path : 'ShipperName', | ||
| group : true | ||
| } | ||
| }"> | ||
| <columns> | ||
| <Column | ||
| hAlign="End" | ||
| minScreenWidth="Small" | ||
| demandPopin="true" | ||
| width="5em"> | ||
| <Text text="{i18n>columnQuantity}"/> | ||
| </Column> | ||
| <Column> | ||
| <Text text="{i18n>columnName}"/> | ||
| </Column> | ||
| <Column | ||
| minScreenWidth="Small" | ||
| demandPopin="true"> | ||
| <Text text="{i18n>columnStatus}"/> | ||
| </Column> | ||
| <Column | ||
| minScreenWidth="Tablet" | ||
| demandPopin="false"> | ||
| <Text text="{i18n>columnSupplier}"/> | ||
| </Column> | ||
| <Column | ||
| hAlign="End"> | ||
| <Text text="{i18n>columnPrice}"/> | ||
| </Column> | ||
| </columns> | ||
| <items> | ||
| <ColumnListItem | ||
| type="Navigation" | ||
| press=".onPress"> | ||
| <cells> | ||
| <ObjectNumber number="{invoice>Quantity}" emphasized="false"/> | ||
| <ObjectIdentifier title="{invoice>ProductName}"/> | ||
| <Text text="{ | ||
| path: 'invoice>Status', | ||
| formatter: '.formatter.statusText' | ||
| }"/> | ||
| <Text text="{invoice>ShipperName}"/> | ||
| <ObjectNumber | ||
| number="{ | ||
| parts: [{path: 'invoice>ExtendedPrice'}, {path: 'view>/currency'}], | ||
| type: 'sap.ui.model.type.Currency', | ||
| formatOptions: { | ||
| showMeasure: false | ||
| } | ||
| }" | ||
| unit="{view>/currency}" | ||
| state="{= ${invoice>ExtendedPrice} > 50 ? 'Error' : 'Success' }"/> | ||
| </cells> | ||
| </ColumnListItem> | ||
| </items> | ||
| </Table> | ||
| </Panel> | ||
| </mvc:View> |