sapui5

Arrange list items in grid

夙愿已清 提交于 2020-05-07 08:18:53
问题 What I want to do is to arrange the list items (coming from a binding) in a grid with columns. Here is my code: <l:Grid defaultSpan="L3 M4 S6" class="sapUiSmallMarginTop" > <m:List mode="None" items="{tickets>children}" > <m:CustomListItem> <m:HBox> <core:Icon size="2rem" src="sap-icon://circle-task-2" class="sapUiSmallMarginBegin sapUiSmallMarginTopBottom color-green" visible="{= ${tickets>status} === 'resolved'}" tooltip="{i18n>ticket.status.resolved}" /> <core:Icon size="2rem" src="sap

Using a Formatter for the Currencies in SAPUI5

孤者浪人 提交于 2020-04-21 18:58:57
问题 I want to build my own formattor for displaying the amount as it should in the different currencies. One could guess I use this solution I already know: <t:template> <Text text="{ parts: [ {path: 'amount'}, {path: 'currency'} ], type:'sap.ui.model.type.Currency', formatOptions: { currencyCode: false } }" </t:template> the problem with this solution is I already show the currency in a seperate column and if I go with this solution it looks pretty ugly.... so I tried this one: <t:template>

Using a Formatter for the Currencies in SAPUI5

天大地大妈咪最大 提交于 2020-04-21 18:53:00
问题 I want to build my own formattor for displaying the amount as it should in the different currencies. One could guess I use this solution I already know: <t:template> <Text text="{ parts: [ {path: 'amount'}, {path: 'currency'} ], type:'sap.ui.model.type.Currency', formatOptions: { currencyCode: false } }" </t:template> the problem with this solution is I already show the currency in a seperate column and if I go with this solution it looks pretty ugly.... so I tried this one: <t:template>

Using a Formatter for the Currencies in SAPUI5

橙三吉。 提交于 2020-04-21 18:51:03
问题 I want to build my own formattor for displaying the amount as it should in the different currencies. One could guess I use this solution I already know: <t:template> <Text text="{ parts: [ {path: 'amount'}, {path: 'currency'} ], type:'sap.ui.model.type.Currency', formatOptions: { currencyCode: false } }" </t:template> the problem with this solution is I already show the currency in a seperate column and if I go with this solution it looks pretty ugly.... so I tried this one: <t:template>

Method onBeforeRendering not called

南笙酒味 提交于 2020-04-16 06:15:03
问题 I try to create a SAPUI5/OpenUI5 application. For that I use some XML-views and navigate between this with a router. Now, I want to call a method every time a specific view is opened. After reading that the method onBeforeRendering solves this case, I implement this function. When I navigate first time to the view the method was used, but not in the second call. Here the code of the View-Controller: sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/model/json/JSONModel"], function

Method onBeforeRendering not called

给你一囗甜甜゛ 提交于 2020-04-16 06:14:10
问题 I try to create a SAPUI5/OpenUI5 application. For that I use some XML-views and navigate between this with a router. Now, I want to call a method every time a specific view is opened. After reading that the method onBeforeRendering solves this case, I implement this function. When I navigate first time to the view the method was used, but not in the second call. Here the code of the View-Controller: sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/model/json/JSONModel"], function

How to Load Dependencies Relative to Defining Module

冷暖自知 提交于 2020-04-13 16:49:01
问题 I made a library project so I can share a formatter and some custom controls between applications. This works pretty well, it's just adding the library to the neo-app.json file. Now I can load my common formatter: app/neo-app.json { "path": "/resources/shared/", "target": { "type": "application", "name": "mysharedlibrary", "entryPath": "/" }, "description": "My shared library" } app/Controller sap.ui.define([ "shared/formatters" ], function(formatters) { //etc Then I wanted to add a shared

How to Load Dependencies Relative to Defining Module

牧云@^-^@ 提交于 2020-04-13 16:48:22
问题 I made a library project so I can share a formatter and some custom controls between applications. This works pretty well, it's just adding the library to the neo-app.json file. Now I can load my common formatter: app/neo-app.json { "path": "/resources/shared/", "target": { "type": "application", "name": "mysharedlibrary", "entryPath": "/" }, "description": "My shared library" } app/Controller sap.ui.define([ "shared/formatters" ], function(formatters) { //etc Then I wanted to add a shared

How to add the data to table rows in xml view

那年仲夏 提交于 2020-03-25 14:12:34
问题 I have the table as below: XML view of table to add: <Table id="TestTable" selectionMode="Single" rows="{path: '/Collection'}" visibleRowCount="5"> <columns> <Column width="4rem" > <m:Text text="S.No" /> <template> <m:Text text="{serialId}" wrapping="false" /> </template> </Column> <Column> <m:Text text="Option" /> <template> <m:Text text="{Option}" wrapping="false" /> </template> </Column> <Column> <m:Text text="Quantity" /> <template> <m:Text text="{Quantity}" wrapping="false" /> </template

How to add the data to table rows in xml view

本小妞迷上赌 提交于 2020-03-25 13:57:50
问题 I have the table as below: XML view of table to add: <Table id="TestTable" selectionMode="Single" rows="{path: '/Collection'}" visibleRowCount="5"> <columns> <Column width="4rem" > <m:Text text="S.No" /> <template> <m:Text text="{serialId}" wrapping="false" /> </template> </Column> <Column> <m:Text text="Option" /> <template> <m:Text text="{Option}" wrapping="false" /> </template> </Column> <Column> <m:Text text="Quantity" /> <template> <m:Text text="{Quantity}" wrapping="false" /> </template