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

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply