on 01-10-2014 5:29 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.