on 10-09-2017 8:14 AM
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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.