on 2017 May 25 6:36 PM
Hi everyone,
I have extended the PayslipCollapsed controller of People Profile app (HCM_PEP_PROFILE) in SAPUI5 1.44. In our current production system (SAPUI5 1.28.17) this extension is working fine. We need People Profile to call our extended version of My Paystubs instead of the standard one, so I changed the semantic object and action in onViewPayslip of my own controller.
onViewPayslip: function() {
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal ({
target: {
semanticObject: "Z123",
action: "display"
}
});
}
The code works except for the fact that the first time user clicks on the link View Payslip in People Profile, the standard app is called. Any subsequent click on that link calls the right app, namely Z123-display.
The extension has been defined in the Component.js as follows:
this.hcm.people.profile.Component.extend("hcm.people.profile.myprofile_ext.Component", {
metadata: {
version: "1.0",
config: {},
customizing: {
"sap.ui.controllerExtensions": {
"hcm.people.profile.blocks.PayslipCollapsedController": {
"controllerName": "hcm.people.profile.myprofile_ext.blocks.PayslipCollapsedControllerCustom"
},
...
Any idea how to fix this?
Thank you
JC
Hi JC,
on a quick look the code looks fine. I would suggest to raise an SAP OSS incident for the same.
Also, 1.28 is currently out-of-maintainence. I would suggest an upgrade to 1.44
Kind regards,
Sagar
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 | |
8 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.