Skip to Content
0

SAPUI5 Bootstrapping Viz Library

Jan 31 at 03:41 PM

80

avatar image
Former Member

Hi all,

I was wondering how to include the sap.viz libraries in my bootstrap when all my other libraries are stored locally. I cannot seem to find the sap.viz library available for download, and I don't know how to use both local and URL libraries together .

Current Bootstrap:

<script type="text/javascript" id="sap-ui-bootstrap" src="./assets/sapui5/sap-ui-core-all.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.m" data-sap-ui-xx-bindingSyntax="complex"> </script>

Above does not contain "sap.viz" locally, so I cannot access it, however I need these to remain local.

How would I add sap.viz to this?

Thanks.

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

2 Answers

avatar image
Former Member
Feb 02 at 02:48 AM
2

<script type="text/javascript" id="sap-ui-bootstrap" src="./assets/sapui5/sap-ui-core-all.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.m, sap.viz" data-sap-ui-xx-bindingSyntax="complex"> </script>

libraries defined in data-sap-ui-libs property will be loaded by SAPUI5 framework automatically. Try add sap.viz in there.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Chapman,

Thanks for your answer.

I have tried this, and done so again just to make sure.

I receive this console error:

failed to load 'sap/viz/library-all.js' from ./assets/sapui5/sap/viz/library-all.js: 404 - Not Found

This of course indicates it is still checking the local resources for the viz library.

Thanks,


Cody

0
Former Member

Maybe you could check the existance of library-all.js on the SAPUI5 resource URL dictionary. All official SAPUI5 library consist of library-all.js. What's the version of SAPUI5 deployed on your environment?

0
Prachi Chaskar Mar 01 at 10:26 AM
0

Hi,

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

see below code:

<script type="text/javascript" id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons, sap.ui.ux3, sap.ui.table, sap.m, sap.viz" data-sap-ui-xx-bindingSyntax="complex"> </script>

Share
10 |10000 characters needed characters left characters exceeded