on 01-30-2015 4:09 PM
Hey guys,
I can't manage to see the changes in the Track Sales Order App after extendig the App. I followed this guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20dbf542-f3e7-3110-a6b8-ebb96b57c...
I could manage that the new App is shown in my Launchpad (so Mapping etc. worked). -> Sales order Extended
Starting is also no problem:
In this view should actually the payment terms appear (See page 5)
In this view should the header be removed (See page 6):
I followed exactly the guide. As you can see everything is working, even the OData service.... I assume there is an error with my extension and modifcation point in the Component.js. I have been searching for hours, but I couldn't find the error.
Here is the code of the Component.js
jQuery.sap.declare("zcus.sd.salesorder.monitor.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "cus.sd.salesorder.monitor",
url: jQuery.sap.getModulePath("zcus.sd.salesorder.monitor") + "/../SD_SO_MON"
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});
cus.sd.salesorder.monitor.Component.extend("zcus.sd.salesorder.monitor.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"zcus.sd.salesorder.monitor.i18n.i18n"
},
"sap.ca.serviceConfigs":[{
name:"SRA018_SO_TRACKING_SRV",
masterCollection : "SalesOrders",
serviceUrl : URI("/sap/opu/odata/sap/ZSRA018_SO_TRACKING_11_SRV/")
.directory(),
isDefault :true,
countSupported : true,
useBatch : true,
mockDataSource : jQuery.sap.getModulePath("zcus.sd.salesorder.monitor") + "/model/metadata.xml"
}]
},
customizing: {
"sap.ui.viewExtensions":{
"cus.sd.salesorder.monitor.view.S3":{
"extSOChangePaymentInfo" :{
className: "sap.ui.core.Fragment",
fragmentName: "zcus.sd.salesorder.monitor.view.extSOChangePaymentInfo",
type :"XML"
}
}
},
"sap.ui.viewModifications":{
"cus.sd.salesorder.monitor.view.S4":{
"SO_OH_ITEMDETAIL":{
"visible" : false
}
}
}
}
Help would be highly appreciated. Thanks
Chris
I don't even know how to debug and find the error. I have no approach for this.... Can anyone help out?
I found a hint, but I assume it has nothing to do with my error. If I execute the original app, this error message is shown:
Another thing I found out. The Component.js of the customized app is not loading (at least I cant see it in the tree).... its loading the component.js from the original app. Is it assumed to be like that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.