Found 23 Articles for SAP UI5

Passing to method geticon in SAPUI5

karthikeya Boyini
Updated on 12-Mar-2020 12:46:42

173 Views

SAP UI supports custom formatter functions. formatter="function" is used to specify a function to format cell data prior to display.formatter="function"Try using formatter function as below −icon : {    parts : ["answer"],    formatter : function(answerValue){       return self.getIcon(answerValue);    } }Refer below link to know more about custom formatter functions −https://sapui5.hana.ondemand.com/1.34.8/docs/guide/07e4b920f5734fd78fdaa236f26236d8.html

Packaging a mobile app in built-in SAP UI5 for Android using Cordova

Amit Sharma
Updated on 27-Jan-2020 12:52:56

449 Views

SAPUI5 provides different static mobile packages: sapui5-mobile-opt-static.zip or sapui5-mobile-static.zip. SAPUI5 supports two options for building mobile apps- it can be used as a web application loaded from a URL or it can also be developed as a hybrid app consisting of a native app wrapper.Example: PhoneGap and an HTML viewer to display the SAPUI5 content on the user interface.Note that “sapui5-mobile-opt-static.zip” or “sapui5-mobile-static.zip” packages are not contained in the SAPUI5 runtime deployment. The packages are contained in the SCN download version of SAPUI5 and in the Open Source version OpenUI5.SAP provides a detailed documentation of these packages:https://help.sap.com/saphelp_nw74/helpdata/en/29/3eb945f0e945aaa776812481b4c533/frameset.htmIf you check out ... Read More

I have SAP UI5 application that I am not able to start after adding to SAP Fiori Launchpad.

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:20

148 Views

This problem can be fixed by adding a / before application URL like this/sap/bc/ui5_ui5/sap/zstest/Ztest- shows name of application

SAP UI5 framework and comparison with JQuesry and Backbone, Angular, etc.

karthikeya Boyini
Updated on 15-Jun-2020 07:32:18

114 Views

The SAPUI5 framework is the original version of the SAP toolkit which was released initially. This version of the toolkit is a proprietary version. Later SAP released an Open source version of it named OpenUI5. Functionally it is almost equivalent in terms of basic operations negating few features but overall sufficient enough as a UI framework.This UI5 framework (applies to both SAPUI5 and OpenUI5) is capable of dispensing all major tasks expected from a full-fledged UI framework. It supports following features:Model View Controller architectureRouting engineModules with the help of module loadersFull data binding either in XML, JSON or using web servicesCulture ... Read More

Binding OData service to SAP UI5 table

Sravani S
Updated on 14-Feb-2020 10:10:22

920 Views

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); });

Reading an image using SAP OData v2 in UI5 application

Sravani S
Updated on 30-Jul-2019 22:30:20

340 Views

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.

SAP UI5 application throws an error while using Tree map

Ali
Ali
Updated on 30-Jul-2019 22:30:20

110 Views

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.

Converting OData using SAPUI5 libraries to JSON format

Ali
Ali
Updated on 14-Feb-2020 10:18:07

372 Views

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")} })

Sending a table from UI5 application to ABAP Function Module

Johar Ali
Updated on 15-Jun-2020 06:38:18

530 Views

This can be done using an OData service that accepts POST request from your UI5 application and writes data to a database table. While implementing OData service, you have to call ABAP Backend Class method.You have to remember that all application and classes are instantiated for processing and will end as soon as the request is completed. An OData service can be created using SAP Gateway Service Builder (SEGW).Following steps has to be performed for creating an OData service:Creation of Data ModelGenerate Runtime ObjectsRegistration of ServiceService ImplementationOnce you create a project in Gateway Service Builder, you have to create Entity ... Read More

Binding model to sap.ui.core in SAP UI5 application

Johar Ali
Updated on 14-Feb-2020 10:26:20

173 Views

Please try below where you need to prefix propertyBinding with models name −var oItemTemplate = new sap.m.ActionListItem({    title : "{checks>title}",    ... });

Advertisements