sapui5

Debug OData requests

安稳与你 提交于 2019-12-23 04:26:50
问题 I am new to SAPUI5/OData development. So maybe this is a trivial question. To get a better feeling of what is going on I'd like to debug the OData requests executed from my application. How can I do this? My environment: Eclipse with SAPUI5 tools Chrome for debugging Tomcat as Servlet Container. I know how to start debugging tools in Chrome, I found the Network tab but what I wish to see is when the app is performing HTTP calls to the OData Service. 回答1: To debug an SAPUI5 Application, you

where are the SAPUI5 icons stored?

早过忘川 提交于 2019-12-23 03:55:18
问题 I have an SAPUI5 based application in which I'm setting the button icons using the url to the icon under the SAP site https://sapui5.hana.ondemand.com/iconExplorer.html. sample code <Button id="excel" text="Excel" icon="sap-icon://excel-attachment" type="Accept" enabled="false" press="onDataExport"/> Now we have to migrate to a different environment in which we cannot use these url's. We downloaded the SAPUI5 api and reference it remotely within the app. I looked under the folders but I

Sort table by certain parts of string only

血红的双手。 提交于 2019-12-23 03:47:57
问题 The sorting works basically fine using the sorter. One column is the full name (e.g. "Steve Jobs"). I have only the full name in that entity set but I want to sort the entries by the last name (last word of the full name) when clicking the full name column header. Is there some way to do this? 回答1: You'll need to define a custom comparator for the sorter which applies only if all the entities are available client-side, for example, by having the operationMode set to 'Client' when defining the

How to concatenate two sap.ui.model.Filter in JSON model?

≡放荡痞女 提交于 2019-12-23 03:07:11
问题 I have a JSON model like this: { "VEHICLES": [ { "vehicleId": "0001", "routeName": "Ginza Line" }, { "vehicleId": "0002" "routeName": "Another Line" } } I am implementing a sort function like this: onSearch : function (oEvent) { var sQuery = oEvent.getParameter("query"); if (sQuery) { var oFilter1 = new Filter("vehicleId", function(value) { return value.includes("sQuery"); }); var oFilter2 = new Filter("routeName", function(value) { return value.includes("sQuery"); }); var allFilter = new

Navigation from Full-Screen View to Master-Detail View SAPUI5

廉价感情. 提交于 2019-12-23 02:56:10
问题 Dear Gurus, As my title, I'm tryig to create an App which contains a Full-screen Menu page with some tiles, and when user presses on one, it navigate to another Master-Detail page. My problem is I can't show the detail page. My code works as below: manifest.json : "routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "WYTH.view", "controlId": "rootApp", "controlAggregation": "pages" }, "routes": [{ "pattern": "menu", "name": "menu", "view": "Menu",

Bind selectedDates Aggregation for Calendar

点点圈 提交于 2019-12-23 02:48:17
问题 I tried to bind an array of dates to sap.ui.unified.Calendar but without success. I am sure I am not far from the solution. Here is the code: var oCal = new sap.ui.unified.Calendar(); var oModel2 = new sap.ui.model.json.JSONModel([ {myDate: new Date("2018-01-10"), tt:""}, {myDate: new Date("2018-01-11"), tt:""}, {myDate: new Date("2018-01-12"), tt:""}, ]); sap.ui.getCore().setModel(oModel, "MyData3"); var oItemTemplate = new sap.ui.unified.DateRange({ startDate: "{MyData3>myDate}", endDate: "

sap.ui.table.Table and sap.ui.table.TreeTable do not display the last data row

北城以北 提交于 2019-12-23 02:19:40
问题 The following bug occurs on SAPUI5 version 1.44.6. When we use a sap.ui.table.Table or a sap.ui.table.TreeTable with visibleRowCountMode="Auto" , the last data row is not displayed when scrolling down on lower resolutions. The tables work perfectly on higher resolutions, such as 1920x1080 , but if I change my screen resolution to 1366x768 , for example, I'm not able to scroll down to the last data row but only to the last but one. Only if I click on the penultimate row and press ↓ , it

UI5: Formatter called multiple times or too soon from an XML view

一世执手 提交于 2019-12-23 00:51:20
问题 I'm using OpenUI5. Using the formatter.js , I have formatted some text in my view. But my formatter is called 3 times: When I bind the model to panel control: oPanel.setModel(oModel, "data"); both sBirthday and sFormat are undefined . After onInit() is finished and the view is rendered: sBirthday is valorized correctly and sFormat is undefined Again: both sBirthday and sFormat ara valorized correctly. Why does this happen? Is it correct? The app get an error, because the ageDescription() in

Change WizardStep button text

只愿长相守 提交于 2019-12-22 17:10:44
问题 How can I rename the button text (default "step 1" till "step n") of each WizardStep ?. For the entire Wizard the text of the finish button can be set by setting the property finishButtonText . But there is no similar property for the WizardStep . 回答1: There is no robust, proper way of changing the next button text (that I could find). But here are two workarounds that might help while someone else gives a better answer: The "next button" is the last control of the content of the current

Change WizardStep button text

亡梦爱人 提交于 2019-12-22 17:09:14
问题 How can I rename the button text (default "step 1" till "step n") of each WizardStep ?. For the entire Wizard the text of the finish button can be set by setting the property finishButtonText . But there is no similar property for the WizardStep . 回答1: There is no robust, proper way of changing the next button text (that I could find). But here are two workarounds that might help while someone else gives a better answer: The "next button" is the last control of the content of the current