Skip to Content
0
Aug 17, 2018 at 06:40 AM

Does Web IDE FS functionality to run libraries from workspace only apply to controls?

452 Views Last edit May 24, 2020 at 11:29 AM 2 rev

I was very excited to read Michal Keidar's blog:

https://blogs.sap.com/2018/08/16/how-sap-web-ide-supports-development-of-sap-fiori-reusable-libraries/comment-page-1/#comment-433924

I would very much like to run my apps from the workspace with re-use libraries also on the same workspace. I tried this out but it didn't seem to work and I would appreciate some help on why it didn't work. Here's what I did on the main workspace of my trial account (full stack Web IDE):

1) Create Simple UI5 application using template
2) Create library using template
3) In library.js add a type (new version like this: libraryjs.txt)
4) Using context menu on simple UI5 app add reference to the library. For reference manifest.json of simple UI5 app now looks like this:

"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.ui.layout": {},
"sap.ui.core": {},
"sap.m": {},
"com.md.library": {
"minVersion": "1.0.0"
}
}
},

5) Update Component.js so that the new type is required. Top of Component.js now looks like this:

sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"com/md/SimpleUI5/model/models",
"com/md/library/Test"
], function (UIComponent, Device, models, Test) {
"use strict";


6) Add run configuration exactly as per Michal's blog

What I get is this error:

Uncaught Error: failed to load

'com/md/library/Test.js' from ../../resources/com/md/library/Test.js: 404 - Not Found

I can also see a 404 on the network tab with the following url:

https://webidetesting5986836-s0015276274trial.dispatcher.hanatrial.ondemand.com/resources/com/md/library/Test.js

Have I missed something?

Attachments

libraryjs.txt (829 B)