on 2014 Aug 11 9:27 AM
Hello All ,
We are trying to extend a wave 2 app . Did the following
1) Downloaded the PO approval from ECC and created a project in Eclipse
UI5_MM_PO_APVL).
2) Tested it by launching it in the sandbox . It works fine .
3) Created an extension project UI5_MM_PO_APVLExtension for the above parent application .
4) Made changes to component.js of extn project specifying the parent URL .
However , the extension app does not work .
When debugged in Chrome , we are basically getting the below error .
Uncaught Error: failed to load 'sap/mm/purchaseorder/approve/uilib/UI5_MM_PO_APVLExtension/Component.js' from ./Component.js: Error: failed to load 'sap/mm/purchaseorder/approve/uilib/Component.js' from ./../UI5_MM_PO_APVL/Component.js: 404 - Not Found sap-ui-core.js:80
Basically we want to know whenever an extension project is launched , how does the content of the parent project's component load ?
Details of Component.js .
jQuery.sap.declare("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "sap.mm.purchaseorder.approve.uilib",
url: jQuery.sap.getModulePath("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension") + "/../UI5_MM_PO_APVL" // provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});
sap.mm.purchaseorder.approve.uilib.Component.extend("sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"sap.mm.purchaseorder.approve.uilib.UI5_MM_PO_APVLExtension.i18n.i18n"
},
},
customizing: {
}
}
});
Any help in fixing the above issue would be helpful !!
Thanks
Abhishek
Tags edited by: Michael Appleby [also moved to SAP for Mobile community]
Message was edited by: Michael Appleby
Request clarification before answering.
Hello Abhishek,
Are you able to resolve your issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
11 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.