Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
SAP UI5 Articles
Page 2 of 2
Converting OData using SAPUI5 libraries to JSON format
This can be done in multiple ways. One of common approach would be by passing user name/password in URL.$.ajax({ url : "http://user:password@url/SERVICE?$format=json", type: "GET", //or POST? dataType: "jsonp", success: function(){alert("ok")}, error: function(){alert("error")} })
Read MoreBinding OData service to SAP UI5 table
Your service end point is incorrect- var oModel = new sap.ui.model.odata.v2.ODataModel("http://admin- think:88/sap/...",{useBatch : true});.To fix this issue, you need to remove “CoreOpenAppSet()” portion of the variable which is getting passed to ODataModel constructor. You need to pass function import using ODataModel- “oModel.callFunction()”.Once function call is completed, you can bind the result using “setBindingContext” as in below code −var oPromise = oModel.callFunction("/CoreOpenAppSet"); oPromise.contextCreated().then(function(oContext) { oView.setBindingContext(oContext); });
Read MoreUsing SSO logon tickets in SAPUI5
When your proxy has SSO token, you should use SET-COOKIE header to pass SSO token to the client.Exampleset-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=xxxxx.sap.comIt should be passed to client browser from proxy and domain name has to be changed to the proxy as shown below:set-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=PROXYDOMAIN.comWhen next time your browser calls to the proxy, this will include session cookie in the request header like below. The proxy will read that Cookie from HTTP request header to make calls.Cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e;
Read MoreUsing ControlAggregation in SAPUI5
“ControlAggregation” refers to the target aggregation to which the mapped view is added.As Specified in the use case below:"routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "sap.ui.demo.nav.view", "controlId": "app", "controlAggregation": "dummy", "transition": "slide", "bypassed": { "target": "NA" }ExampleThe views are defined as follows: So here “controlAggregation” is named as 'dummy' but the app is named as SampleApp.so the target is 'sap.m.SampleApp' and aggregation is named as 'dummy'. Let ...
Read MoreRequest Timeout while using Odata call to a gateway in SAPUI5 application
As you have already tried different parameters, I would suggest to check timeout option for ICM and Web Dispatcher.In SAP, you have ICM and Web Dispatcher with different timeouts, controlled by different parameters:Timeout for opening a connection: icm/conn_timeoutTimeout for receiving a request: icm/traffic_control Keepalive timeout for the network connection: icm/server_port_ option TIMEOUT and icm/keep_alive_timeoutProcessing timeout in the back end: icm/server_port_- option PROCTIMEOUTSAP Recommendation for these scenarios:In systems where the standard timeout setting of 60 seconds for the keep-alive and processing timeouts is not sufficient due to long-running applications, SAP recommends that both the TIMEOUT and PROCTIMEOUT parameters are set for the ...
Read MoreGetting data in SAPUI5 application from backend tables in NetWeaver
Note that Eclipse is just a standard editor to develop UI5 application. You should use SAP IDE which is one of the recommended editor now.When you backend system as NetWeaver system, Gateway and OData would be the recommended way to use.
Read MoreSAP UI5 application throws an error while using Tree map
Note that SAP UI5 1.14 version supports Tree map and older version like 1.12 doesn’t have Tree map. You can try using below link: http://jsbin.com/aku-test-treemap-exists/1/edit?html,outputIt returns the code of tree map constructor, try loading your own copy sap-ui-core-js of UI5.
Read MoreReading an image using SAP OData v2 in UI5 application
You have to use below code:img.setSrc("/path/to/my/service/UserPhotoSet('someone@gmail.com')/$value");Here you need to replace part with original path.
Read MoreI have SAP UI5 application that I am not able to start after adding to SAP Fiori Launchpad.
This problem can be fixed by adding a / before application URL like this/sap/bc/ui5_ui5/sap/zstest/Ztest- shows name of application
Read MoreHow to set the first day of the week in sap.m.DatePicker's calendar?
I don’t think there is any recommended way to access internal calendar in Datepicker. I would suggest you raise a function request in Openui5 using GitHub.
Read More