Skip to Content
Former Member
Dec 03, 2014 at 01:14 PM

Dynamic Loading of SAPUI5 libraries


Hello all,

The design time of our project involves creating a SAPUI5 project in eclipse; and then we share the project in the SAP ABAP repository to create a BSP application.

Now, instead of loading all the library files(like sap.ui.commons, sap.ui.ux3) in the index.html; i am trying to load the the files on demand in my application code using the loadLibrary method provided by the sap.ui.core.Core. But it throws an error message "Uncaught TypeError: undefined is not a function".

Also, if i debug and watch the value of sap.ui.getCore().loadLibary("sap.ui.table"), it returns a correct response.

Have you encountered such issue?

Alternatively, i have tried using the"sap.ui.table"), when i observe the Network in the debugger mode in Chrome I observe that the library files gets loaded but it gives the same error.


Jagannathan R