Skip to Content
avatar image
Former Member

How to bootstrap UI5 remotely and include a local library?

Hi all,

I recently created a third party control library and tested it with openUI5 on a local server. I bootstrapped my library like this:

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="resources/sap-ui-core.js"
    data-sap-ui-libs="sap.m, my.library"></script>

Now with openUI5 loaded from remote I would like to include my library the same way, but there is no resource folder I can copy it to.

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
    data-sap-ui-libs="sap.m, my.library"></script>

Please, If anybody knows how to include it, I would very much appreciate your help.

Kind Regards, Tim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 08, 2016 at 01:41 PM

    You can use the resource root property to declare the location

    data-sap-ui-resourceroots='{
    	"com.my.libs": "libs"
    }'>
    

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you very much for this incredibly fast and helpful answer. It worked at first try.

      Kind Regards, Tim