Quantcast
Channel: SCN : Blog List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 676

Testing UI5 Apps

$
0
0

Hi All,

 

I've been developing some apps in SAP HANA for desktop and mobile viewports. Here's a tip for testing those apps without using the mobile phone simulator to check the rendering for mobile screens:

 

In the <head> tag of the html file there is a block of code to initialise sap.ui libraries, themes and others. It looks like this:

 

<script id='sap-ui-bootstrap' type='text/javascript'        src='https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js'          data-sap-ui-theme='sap_bluecrystal'        data-sap-ui-libs='sap.m'></script>

 

In order to enable the testing for mobile screens the following line should be added before closing the <script> tag:

 

data-sap-ui-xx-fakeOS='ios'

 

This line allows simulation of an iPhone/iPad viewport.

 

Hope this helps all SAP HANA starters.

 

Regards,

 

Alejandro Fonseca

Twitter: @MarioAFC


Viewing all articles
Browse latest Browse all 676

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>