Skip to Content
0
Feb 05, 2016 at 06:19 AM

How to load sap.m library dynamically?

447 Views

Hi Experts,

I am facing one issue. I've developed one app using by SAP.M library.

After configuring into LPD_CUST. When I use the app, the button events are not working. because the sap.m library was not loaded when bootstrap initialized.

If I run the app separately as BSP file from server, it is working fine.

For Example, Find the attached image file. In that when I click on Sentiment Engagement tab, My App will be opened within the standard container.

This is the bootstrap details of Home page container.

<script src="resources/sap-ui-cachebuster/sap-ui-core.js"

id="sap-ui-bootstrap"

type="text/javascript"

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

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-xx-appCacheBusterMode="batch"

data-sap-ui-preload="async">

</script>

Does anyone know how to activate the sap.m library w/o placing it explicitly in data-sap-ui-libs attribute?


Thanks in advance.


Regards,

Sampath.

Attachments

Capture.PNG (84.9 kB)