cancel
Showing results for 
Search instead for 
Did you mean: 

how to use jQuery.sap.registerModulePath

Former Member
0 Kudos
  • 1.There is a BSP Application/Project – MDG_LIB_BP.

This has fragments for views.

  • 2.The standard fiori app calls the MDG_LIB_BP application from the component in the below manner.
  • 1.Now I want to call the MDG_LIB_BP in my custom application in similar fashion.

Please help.

Useful reference: UI5 Demokit

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

It is to refer to the folder in which all your views, controllers, fragments etc. are stored. Once mapped, you use the relative path to the inside folders, which invoking the views/controllers/fragments.

Former Member
0 Kudos

Agreed, But i am unable to load the library

Sharathmg
Active Contributor
0 Kudos

You mean the SAP UI5 library?

SergioG_TX
Active Contributor
0 Kudos

an alternate solution... this is something I have done on my controller.js files

jQuery.sap.require("path.to.your.other.jsLibrary");

Another option is if you use the script tag in your html and reference the external library.

Former Member
0 Kudos

Hello,

I tried the same in my controller as well as component, but i get the result as undefined.

jQuery.sap.registerModulePath("sap.fcg.mdg.lib.bp", "/sap/bc/ui5_ui5/sap/MDG_LIB_BP/sap/fcg/mdg/lib/bp")

undefined

The standard app has exactly the same path and is able to load the library, but i am not 😞