cancel
Showing results for 
Search instead for 
Did you mean: 

Component.js. - Modifying Fiori Applications.

Former Member
0 Kudos

Dear All

I have the following code in the component.js of an extended Fiori Application

hcm.emp.payslip.Component.extend("hcm.emp.payslip.Z_HCM_PS_MON.Component", {

  metadata: {

  version : "1.0",

  config : {

  "sap.ca.i18Nconfigs": {

  "bundleName":"hcm.emp.payslip.Z_HCM_PS_MON.i18n.i18n"

                        },

  },

  customizing: {

  "sap.ui.viewModifications": {

         "hcm.emp.payslip.view.S3_Phone": {

             "MPS_GROSSPAY": {

                 "visible": false

             },

             "MPS_DEDUCTIONS": {

                 "visible": false

             }

         },

         "hcm.emp.payslip.view.S3": {

             "MPS_GROSSPAY": {

                 "visible": false

             },

             "MPS_DEDUCTIONS": {

                 "visible": false

             }

         }

  }

  }

  }

This "Should" hide the gross pay field and the deduction fields on the Pay Stubbs Application.

Has anyone ideas why it isn't working at all ?

Cheers

James

Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi James,

did you load the original app before using "sap.ui.component.load()"?...

Do you know this page?

Best regards

Matthias

Former Member
0 Kudos

Are you seeing any error in the console..?