on 2015 Nov 19 7:06 PM
I am trying to extend the approve timesheet V2.0 app and I when trying to test locally using apache server, I am getting below error.
Uncaught Error: failed to load 'zhcm/approve/timesheet/Component.js' from /ZHCM_TSH_APV/Component.js: Error: failed to load 'hcm/approve/timesheet/Component.js' from ../../../../../resources/hcm/approve/timesheet/../HCM_TSH_APV/Component.js: 404 - Not Found
Below is the component.js file. Do you see any error here ? Please help.
jQuery.sap.declare("zhcm.approve.timesheet.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "hcm.approve.timesheet",
url: jQuery.sap.getModulePath("hcm.approve.timesheet") + "/../HCM_TSH_APV" // provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});
hcm.approve.timesheet.Component.extend("zhcm.approve.timesheet.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"zhcm.approve.timesheet.i18n.i18n"
},
"sap.ca.serviceConfigs": [{
name: "HCM_TIMESHEET_APPROVE_SRV",
masterCollection : "TIME_PENDING",
serviceUrl: URI("/ZHCM_TSH_APV/proxy/sap/opu/odata/sap/HCM_TIMESHEET_APPROVE_SRV/")
.directory(),
isDefault :true,
countSupported : true,
useBatch : true,
mockDataSource : jQuery.sap.getModulePath("zhcm.approve.timesheet") + "/model/metadata.xml"
}]
},
customizing: {
}
}
});
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
50 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
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.