Skip to Content
0

Hide forward button for CA_FIORI_INBOX (Myinbox) App

May 04, 2017 at 05:31 PM

532

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Oct 10, 2017 at 08:09 AM
0

hi

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

Thanks

Monika

Share
10 |10000 characters needed characters left characters exceeded
Bruno Garcia Oct 10, 2017 at 12:23 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded