on 10-28-2014 10:30 PM
Hi Expert
Please assist with the bellow issue:
I am trying to add a custom field on Fiori Purchase Requisition(PR) app using extension point but I keep getting the bellow error
i have created a new launchpad with the following additional info:SAPUI5.Component=ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component and bellow is my Component.js file
Lanchpad
Please note I have not implemented any views extension as I am still troubleshooting - the error occurs even when an extension is created
Please Assist
Ted
change the mechanism to load the parent object,instead of using registermodule path, simply use absolute url of the parent application
sap.ui.component.load({
component: ui2.sp.....
url: "/sap/bc/ui5_ui5/sap/mm_pr_apv
})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandip
Thanks for the quick feedback. I have updated my code as per your suggestion but I am still getting the same error - see code bellow
jQuery.sap.declare("ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name : "ui.s2p.mm.requisition.approve",
url : "/sap/bc/ui5_ui5/sap/mm_pr_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
});
ui.s2p.mm.requisition.approve.Component
.extend(
"ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component",
{
metadata : {
version : "1.0",
config : {
"sap.ca.i18Nconfigs" : {
"bundleName" : "ui.s2p.mm.requisition.approve.mm_pr_apvExt.i18n.i18n"
},
},
customizing : {}
}
});
Thanks
Ted
Thanks Sandip
But my additional fields that I've added are not visible - it seems like the standard Purchase requisition view is displayed instead.
here with the view I am trying to add fields to - PR item details (item level release)
Extension
Component
The only thing I can think of is that I could be enhancing an incorrect view - I then went and change the view name but still getting the standard view without mt additional fields
Please assist
Rgds
Ted
Please note that I have enhanced (Not modify) the odata model by adding purchase requisition group.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.