cancel
Showing results for 
Search instead for 
Did you mean: 

How to get reference of sap.m ?

Former Member
0 Kudos

Hi all,

     How to get reference of "sap.m" through view.js??

     If I am passing sap.m like below, there is some UI issue is occurring in other pages .


<script id="sap-ui-bootstrap"

      type="text/javascript"

    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

    data-sap-ui-theme="sap_bluecrystal"

    data-sap-ui-libs="sap.ui.commons,sap.suite.ui.commons, sap.ui.ux3, sap.ui.table, sap.viz, sap.m">

    <!--   data-sap-ui-language="en"> -->

  </script>

so i would like to pass sap.m to specific view. is it possible? if so please help me to achieve this.

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

You should not mix sap.ui.commons and sap.m controls, that will give issues according to some topics on SCN/Stackoverflow

I would reduce the number of libraries if you don't use them, or use data-sap-ui-preload="async" in you bootstrapper to asynchronously load your libraries if you really need them all and see if that helps

Answers (0)