cancel
Showing results for 
Search instead for 
Did you mean: 

Hide forward button for CA_FIORI_INBOX (Myinbox) App

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member491698
Discoverer
0 Kudos

Hi,

Extend the controller S3 by implementing extHookChangeFooterButtons.

In the file manifest assign your custom controller to the standard view.

Then create the following folder and file


Kr,
Mohamed Fredj.
BGarcia
Active Contributor
0 Kudos

Hi Monika,

Try to configure the URL like:

/sap/bc/ui5_ui5/sap/<your Z-BSP component name>

(You can confirm this in SICF tcode, in your gateway system.)

Also, try to define the component ID like:

cross.fnd.fiori.inbox.<your extension component> 

(Check manifest.json in your WEBIDE extension project, on sap.app-id.

See if this helps you a little more. 🙂
Kind regards,
Garcia

0 Kudos

hi

Did you get any solution to this problem.I am also trying to do the same.

Thanks

Monika