Skip to Content
0

How to bootstrap UI5 remotely and include a local library?

Nov 08, 2016 at 12:59 PM

88

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jamie Cawley
Nov 08, 2016 at 01:41 PM
1

You can use the resource root property to declare the location

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

Regards,

Jamie

SAP - Technology RIG

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

Kind Regards, Tim

0