Skip to Content
avatar image
Former Member

Extension to Fiori App Employee Lookup not working

Hi,

I've tried extending the Fiori App Employee Lookup, both through the remote Webide fiori testing and in own frontend system to no avail.

As per the remote webide, everything looks so simple when using the extensibility pane, all it requires is selecting the lblEmpNo (I want to hide the employee number from header) and then hide, producing the following component.js code (it includes an attempt to hide Name as well, no field is actually hidden):

jQuery.sap.declare("hcm.employee.lookup.hcmemployeelookupExtension.Component"); 
// use the load function for getting the optimized preload file if present sap.ui.component.load({ name: "hcm.employee.lookup", 
// Use the below URL to run the extended application when SAP-delivered application is deployed on cloud url: jQuery.sap.getModulePath("hcm.employee.lookup.hcmemployeelookupExtension") + "/parent" 
// we use a URL relative to our own component // extension application is deployed with customer namespace }); this.hcm.employee.lookup.Component.extend("hcm.employee.lookup.hcmemployeelookupExtension.Component", { 
      metadata: { 
         version: "1.0", 
         config: {}, 
         customizing: { "sap.ui.viewModifications": { 
             "hcm.employee.lookup.view.Hierarchy": { 
                    "lblEmpNo": { "visible": false }, 
                    "lblName": { "visible": false } 
              } 
            }
          }
       }
});

Am I missing something? I tried extending the controllers themselves (Hierarchy and Search controller) but that causes other collateral issues, like the reporting employees not showing up.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 15, 2017 at 04:09 PM

    Hello Juan,

    have you found the solution to this?

    Kind regards,

    Add comment
    10|10000 characters needed characters exceeded