cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load multiple libraries during the bootstrapping.

Former Member
0 Kudos

HI Gurus, I have issue in loading multiple libraries with my local SAPUI5 installation. But it is working fine with HANA CLOUD. Please refer the below code.

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

        id="sap-ui-bootstrap"

        data-sap-ui-libs="sap.m,sap.ui.commons"

        data-sap-ui-xx-fakeOS="android"

        data-sap-ui-theme="sap_bluecrystal">

    </script>

With my local installation the controls dont get displayed, the loaded page appears blank when i use both libraries sap.m and sap.ui.commons. But works fine when i use either sap.m  or sap.ui.commons. Please help me to resolve this issue.

Thanks,

Ganesh.

Accepted Solutions (1)

Accepted Solutions (1)

surendra_pamidi
Contributor
0 Kudos

Hi Ganesh,

I am thinking that you are using the  controls which are in both sap.m and sap.ui.commons. They might use the code for the controls in sap.m and commons differently. So that they are conflicting there. You should use either sap.m or sap.ui.commons..

And for Hana cloud, it is not allowing another library when the controls having sufficient libraries.

Regards,

Surendra.

Former Member
0 Kudos

Hi Surendra,

Thanks for the quick response. In my code i am using matrix layout of SAP.UI.COMMONS and putting that in a page of SAP.M. In this case how can i proceed?

surendra_pamidi
Contributor
0 Kudos

Use any layouts in sap.m..

Answers (1)

Answers (1)

qmacro
Developer Advocate
Developer Advocate
0 Kudos

Hi

Mixing controls from different libraries should be fine, and is a common pattern in some cases. Your example of having a sap.ui.commons.layout.MatrixLayout inside a sap.m.Page is fine.

So there must be another issue.

What are the versions of the sapui5 framework from your local installation, and from the HANA cloud version?

Are there errors in the browser console?

Most importantly, can you reduce your code to the minimum to display the error and share it?

dj