Hi,
I am currently trying to build a UI5 Application as a component (via component.js) to be loaded inside a LaunchPad.
Now the issue i am having is that i want to encapsulate certain parts of the Views into reusable fragments that sit
in a general Application.
This is needed because I will have n Applications that reuse those fragments and I dont want to copy them each time.
Now this means I need to load the application the fragments are located in.
when i do that the normal way with a index.hmtl etc.. that works fine via
jQuery.sap.registerModulePath("ZCore", "../ZCore");
Now when using components according to some launchpad document I found we are not supposed to do this.
So I am trying to load them via the meta data like that:
sap.ui.core.UIComponent.extend("ZABC.Component", {
metadata : {
name : "ZABC",
dependencies : {
components : [ "ZCore" ],
I tried ../ZCore as well but they all seem to start from the launchpad resource location and I cannot get it to change the path
it takes in order to load the component to /sap/bc/ui5_ui5/sap/ from /sap/bc/ui5_ui5/ui2/ushell/resources .
So now the question is how to fix that or do I need to stick to the register module path which if I read the docu correctly
will also start from the Lauchpad path and now from the application.
cheers
Kay