Skip to Content
0

Deploying resources/ folder within a Fiori App?

Oct 09, 2017 at 07:14 AM

36

avatar image
Former Member

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.

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

1 Answer

Best Answer
avatar image
Former Member Oct 09, 2017 at 09:32 AM
0

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!

Share
10 |10000 characters needed characters left characters exceeded