on 10-13-2014 6:08 AM
Hi ,
I am working on the Fiori based applications. In my app i have to extend the standard PO application. i have imported and done with all process by following an guide. but while running the application i can see the application in Launchpad. but while clicking it ,it does not showing the next page. i have mentioned the error below. please guide on this.
Error:
Message was edited by: Michael Appleby
Hi Jayakrishnan,
Is the standard app working locally?
If yes add the statement
jQuery.sap.registerModulePath("<extension project name>", './'); | |
jQuery.sap.registerModulePath("ui.s2p.mm.purord.tracking", '../<name for the project on local server>);
Please post the code of your component.js here.
Confirm the names of the project running on server too.
Thanks and Regards, Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
Thank you for your reply, please find the Component.js file code below.
jQuery.sap.declare("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.Component");
jQuery.sap.declare("ui.s2p.mm.purord.tracking.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "ui.s2p.mm.purord.tracking",
url: jQuery.sap.getModulePath("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO") + "/../MM_PURORD_TPO" // provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});
ui.s2p.mm.purord.tracking.Component.extend("ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"ui.s2p.mm.purord.tracking.Z_MM_PURORD_TPO.i18n.i18n"
},
"sap.ca.serviceConfigs" : [ {
name : "GET_ALL_PRSet",
masterCollection : "WorkflowTaskCollection",
serviceUrl : URI(
"/Z_MM_PURORD_TPO/proxy/sap/opu/odata/sap/ZPR_TRACK_SRV/GET_ALL_PRSet")
.directory(),
isDefault : true,
countSupported : true,
useBatch : true,
mockDataSource : jQuery.sap
.getModulePath("ui.s2p.mm.purord.tracking")
+ "/model/metadata.xml"
} ]
},
customizing: {
}
}
});
Moved from SAP Mobile Platform Developer Center to SAP for Mobile community. Nothing to do with SMP.
Regards, Mike (Moderator)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more Error : --> TypeError: ui.s2p.mm.purord.tracking.Component is undefined
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 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.