Online Tutorials & Training Materials | STechies.com
Register Login

How will We Create Custom Apps for Multiple Devices in SAP UI5?

|| || 2

How will We Create Custom Apps for Multiple Devices in SAP UI5?
Stechies

Hello Experts,

How will we create custom apps for multiple devices(Mobile,tablet,laptop& Desktop) in SAP UI5? Is there any configurations or need to write any logic?

Kindly share your valuable views here, thanks in advance.


Comments

  • 24 Dec 2015 3:00 pm

    You can check the compatible packages and respective classes for screen designing and then integrate app to launchpad with device type based on your requirement under Catalog Target Mapping in Launchpad designer.

     

  • 24 Dec 2015 3:02 pm

    You have to write logic for this:

    var deviceModel = new sap.ui.model.json.JSONModel({
    isTouch : sap.ui.Device.support.touch,
    isNoTouch : !sap.ui.Device.support.touch,
    isPhone : jQuery.device.is.phone,
    isNoPhone : !jQuery.device.is.phone,
    listMode : (jQuery.device.is.phone) ? "None" : "SingleSelectMaster",
    listItemType : (jQuery.device.is.phone) ? "Active" : "Inactive"
    });
    deviceModel.setDefaultBindingMode("OneWay");
    this.setModel(deviceModel, "device");

Related Articles