Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

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

Labels in this area