cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori People Profile Extended controller not called the first time

JC-Azcoitia
Explorer
0 Kudos
349

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

Accepted Solutions (0)

Answers (1)

Answers (1)

sagarmehta
Product and Topic Expert
Product and Topic Expert
0 Kudos

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