Skip to Content
0
Former Member
May 04, 2017 at 05:31 PM

Hide forward button for CA_FIORI_INBOX (Myinbox) App

1945 Views Last edit Aug 30, 2017 at 04:55 PM 3 rev

Hello,

I am very newbie on FIORI developments and my first development on FIORI is to hide the foward button for Approvals Apps (Purchase, Contracts and Requisition).

I created an extension project on WEB IDE for CA_FIORI_INBOX app and made this adjustment on S3Custom.controller.js:

sap.ui.controller("cross.fnd.fiori.inbox.CA_FIORI_INBOXExtension.view.S3Custom", {
extHookChangeFooterButtons: function(oButtonList) {
        oButtonList.aButtonList.getIdForLabel()("XBUT_FORWARD").setVisible(false);
}
});

This below is the Component.js, i made no changes:

jQuery.sap.declare("cross.fnd.fiori.inbox.CA_FIORI_INBOXExtension.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "cross.fnd.fiori.inbox",
// Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository
url: "/sap/bc/ui5_ui5/sap/CA_FIORI_INBOX"
// we use a URL relative to our own component
// extension application is deployed with customer namespace
});
this.cross.fnd.fiori.inbox.Component.extend("cross.fnd.fiori.inbox.CA_FIORI_INBOXExtension.Component", {
metadata: {
manifest: "json"
}
});

I deployed to SAPUI5 abap repository and already configured the customizing Catalog and Group for my app extension. The only change that i did was:

  • URL: /sap/bc/ui5_ui5/sap/NAMESPACE/ca_inbox/
  • ID: cross.fnd.fiori.inbox.CA_FIORI_INBOXExtension.Component

When i run the "new app" it seems still running the original code, without running the extension code.

Anyone could help me to fix this problem?

Best Regards.