cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying resources/ folder within a Fiori App?

Former Member
0 Kudos

Hello community!

I am currently developing a SAPUI5 Fiori App (in WebIDE) based on a Master-Details template. The development works fine during the test with the testFLPservice.html, but as soon as I deploy the application via WebIDE my resources/ folder does not get deployed, hence my application is missing the external libraries I need for it to work (download.js and PDF.js).

Is there any way I can deploy the resources/ folder myself? I tried moving the resources folder to the webapp/ to no luck (initLibrary for the PDF.js component wrapper is complaining about the resources directory).

Directory tree:

root/
  resources/
    external/
  webapp/
    views/
    controllers/
    ...

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Nevermind.

I managed to solve this issue by moving resources/ to webapp/ and register the new path for the modules (thirdparty) by adding the following into the component.js before the first use of the module/js:

jQuery.sap.registerResourcePath("thirdparty", jQuery.sap.getModulePath("my.app.base.path") + "/resources/thirdparty");

Thou I still not think this is the "cleanest" solution but more of a temporary workaround. If anyone knows how to properly insert the resources/, please let me know.

Thanks!

Answers (0)