sapui5

Converting ODataModel into JSON Model

橙三吉。 提交于 2019-12-13 11:19:56
问题 Because of problems with reading all lines of a UI5 common table and the getModel() method from table offers a model. I thought I could use a JSONModel instead of my ODataModel, the problem now is how to get the ODataModel to the JSONModel. Because JSON offers some Two Way Binding options which should be helpful. I tried to read some set and bind it to the JSONModel, the problem is that I couldn't bind the new model two the view because it doesn't offer some set. Here is a snippet of my code.

Show chart in dialog box when a button is pressed

眉间皱痕 提交于 2019-12-13 09:21:30
问题 My Goal is to launch a popup or dialog or messagebox whatever pops up and is able to contain the graph. Dialog is working but chart data is not coming in sapui5 回答1: Using SAPUI5 's JSView to create the dialog and Radial Chart, triggered by button press event, you can have a look at the full application here SAPUI5 Dialog openDialog: function() { if (!this.draggableDialog) { this.draggableDialog = new Dialog({ title: "Charts", type: "Message", contentWidth: "900px", contentHeight: "700px",

Displaying csv file from server in sapui5

◇◆丶佛笑我妖孽 提交于 2019-12-13 09:21:01
问题 I have a server that is returning a csv file. I need to allow this file to be downloaded to the client side using sapui5. I am fairly new to it so I am having trouble handling the response. Any ideas would be much appreciated. Thanks in advance 回答1: You can check sap.ui.core.util.File save method. Working example below. sap.ui.define([ "sap/ui/core/util/File"]) sap.ui.getCore().attachInit(function() { "use strict"; sap.ui.controller("MyController", { onInit: function() { } }); sap.ui.xmlview(

How to split ui5 app

冷暖自知 提交于 2019-12-13 09:18:42
问题 I have been developing ui5 apps but working on my own on the whole app. Now I have to manage a team of developers that will be working on the same app. I have had a look at Git to manage the repository, but how can we split work to work all on the same app? 回答1: It of course depends on the complexity of your app and the number of people you have in your development team. Nevertheless, the first thing you have to consider is using a git branching model for the repository (e.g. feature branches

Master menu is not visible on mobile devices but is visible on InternetExplorer

帅比萌擦擦* 提交于 2019-12-13 09:06:35
问题 I'm working on a SAPUI5 App showing some data in a MasterDetailView using the sap.m.splitapp. My Problem is quit equal to the question Master menu is not visible on mobile devices but is visible on tablet. In my case, I have the situation, that I'm going to create a MasterPage with a MasterController depending on requested data. Depending on these data I create dynamically the DetailPages in a function of the MasterController. for(var i=0;i<adata.inhaltList.length;i++){var DetailPage = new

SPA (Single-page app) load always from cache

爱⌒轻易说出口 提交于 2019-12-13 08:51:42
问题 I have a SPA (Single-Page Application) written using OpenUI5 framework. It works well (when I'm in debug mode or using cache-killer https://chrome.google.com/webstore/detail/cache-killer/jpfbieopdmepaolggioebjmedmclkbap) but now I have pushed the app on the server apache: here the problems started... Users not have cache-killer installed and I would like update the app on the server and immediately have the new version of the app on the users pcs at the successive refresh. In my app I have a

How to Achieve Auto Width Column in sap.ui.table.Table?

ぃ、小莉子 提交于 2019-12-13 08:10:47
问题 I am using sap.ui.table.Table . This table has some very good feature but I am having a tough time to figure out how to set the column to auto width. Currently, all the columns are fixed size but I want something if column A value is small, then auto adjust it rather than having fixed size. Same for if the column value is large, then adjust it to show the value. 回答1: The control sap.ui.table.Column offers a property called autoResizable by which the user can resize the column width depending

How to set Number of Dynamic Tile in HCP portal service?

℡╲_俬逩灬. 提交于 2019-12-13 06:49:29
问题 I just want to use number from my server to change tile number, such as using URL http://10.59.XXX.100:8080/Map/dynamicTileOnlyNo In SCN blog, they use /sap/fiori/employees/destinations/northwind/V3/Northwind/Northwind.svc/Employees/$count to set dynamic data which stand for /<fiori proxy>/<application id>/destinations/<destination name>/<path to OData service>/<OData collection>/<query string> But I tried http://services.odata.org/Northwind/Northwind.svc/Employees/$count , returned: Failed

Calling Servlet in SAPUI5 application shows 404 error

倖福魔咒の 提交于 2019-12-13 06:28:18
问题 I have developed SAPUI5 application and trying to use servlets for implementing some server side functionality. I have taken guidance from this tutorial I use JQuery ajax call from SAPUI5 controller to Servlet which works fine on my local development environment ( i.e. Eclipse Neon , localhost ). //Name of servlet is GetUserServlet , mapping defined in web.xml $.get('GetUserServlet', { userName : "Hello World" }, function(responseText) { alert(responseText); }); This Ajax call successfully

How to delete the row of sap.m.Table on click of an icon inside ColumnListItem? [duplicate]

不想你离开。 提交于 2019-12-13 06:15:10
问题 This question already has answers here : How to prevent OData service call on model change (2 answers) Closed 2 years ago . I have a JS view in which I am creating a sap.m.Table. It's "columns" are bound to a JSON model. It's "items" are bound to odata service. I have two issues I have been struggling with for a while now. Issue 1 - How to delete the row a table on click of an icon inside columnlistitem? Issue 2 - I have created another question for this - How to access row and column data on