Found 23 Articles for SAP UI5

Difference between SAPUI5 controls and HTML5 Controls

Bhanu Priya
Updated on 04-Oct-2023 16:51:46

401 Views

What is SAPUI5? It is a framework used to develop web applications in mobile and desktop where a large collection of JS libraries are present. But these JS libraries cannot be used alone. They have to be integrated into CSS along with JS for developing interactive internet applications. SAP can be customized and can also build its own UI components like, layouts, controls etc. Because of its extensive features, we can control and define custom controls. Features of SAPUI5 Following are some of the features of SAPUI5 − It can create complex UI patterns for use case. It uses ... Read More

Using ControlAggregation in SAPUI5

Govinda Sai
Updated on 16-Dec-2019 06:40:35

469 Views

“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 More

Loading 3rd party libraries in SAPUI5

Sravani S
Updated on 18-Feb-2020 07:28:51

694 Views

JavaScript includes various third-party libraries that ease the development while working on SAP UI5 app. You can use following jQuery as below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Other common JavaScript libraries that are in use −MomentJSLoadshTo load a third party library in SAP UI app project, create a folder “libs”. This folder is used to put third-party libraries −You can create a file named- moment.js and paste the code that has been copied from third party library website. This code can be included in your UI5 app using the library - index.html.

Not able to call another function within initialize method of controller in SAP UI5.

Anil SAP Gupta
Updated on 17-Feb-2020 12:34:32

322 Views

Yes, you are absolutely correct. It is very basic thing, you just need to use this operator for making the function call.onInit: function() {    //Your logic    this.CustomFunction(); } CustomFunction : function () {   // some logic }

How to show only one view at a time in Wizard in SAP UI5?

Anil SAP Gupta
Updated on 17-Feb-2020 12:35:22

245 Views

I will say not it is not a big out of box requirement. You can easily get it done. What you need to do is to hook up your requirement in the complete event of the wizard which gets invoked on each step completion. You just need to hide the completed view and show the next view. So you will be viewing only one view at a time.onComplete: function(oEvent) {                 var wdStep = oEvent.getSource();                 wdStep.setVisible(false);             }

Rows with no data are visible after applying search in grid SAP UI5

Anil SAP Gupta
Updated on 17-Feb-2020 10:56:18

309 Views

The “No Data” rows are being shown in the grid irrespective of having no data is because of the “VisibleRowCount” attribute of the control. It controls the number of visible rows. So, once you are binding the table again after applying the filters, you need to update it dynamically to the number of rows in the matched result.Something similar to this −onBindingChange: function(oEvent) {     this.getView().byId("").setVisibleRowCount(oEvent.getSource().getLength()); }

OnInit method is not getting called again when navigating back and forth from a view in SAPUI5

Anil SAP Gupta
Updated on 17-Feb-2020 12:39:18

523 Views

You have identified the correct use case as it is by design as you have navigated back and forth, it renders the last version rendered and OnInit() does not gets called. But if you want to override this behavior, SAP lets you do it.You can delegate to the patternMatched event of router, so that wheever the view is rendered the OnInit() method is invoked.this.getOwnerComponent().getRouter().getRoute("").attachPatternMatched(, this);You need to attach the even handler to the router in the init method of the controller. Hope it helps and sorts out your requirement.

Using SSO logon tickets in SAPUI5

karthikeya Boyini
Updated on 16-Dec-2019 07:37:21

211 Views

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;

How to set the first day of the week in sap.m.DatePicker's calendar?

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

80 Views

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.

Accessing element which is defined SAPUI5 application

Rahul Sharma
Updated on 25-Feb-2020 10:56:56

60 Views

You could try using the below code −var iconTabBar = sap.ui.getCore().byId("vwDetails--itabBar")

Advertisements