cancel
Showing results for 
Search instead for 
Did you mean: 

Remove footer button on MM_PO_APV app

Former Member
0 Kudos

Experts,

I've extended an MM_PO_APV app in SAPUI5, and challenged to hide the 'Forward' button extending the controoler, with the following code:

this.setHeaderFooterOptions({

            oPositiveAction: {

                sI18nBtnTxt: that.resourceBundle.getText("XBUT_APPROVE"),

                onBtnPressed: jQuery.proxy(that.handleApprove, that)

            },

            oNegativeAction: {

                sI18nBtnTxt: that.resourceBundle.getText("XBUT_REJECT"),

                onBtnPressed: jQuery.proxy(that.handleReject, that)

            },

            onBack: jQuery.proxy(function() {

                //Check if a navigation to master is the previous entry in the history

                var sDir = sap.ui.core.routing.History.getInstance().getDirection(this.oRouter.getURL("master"));

                if (sDir === "Backwards") {

                    window.history.go(-1);

                } else {

                    //we came from somewhere else - create the master view

                    this.oRouter.navTo("master");

                }

            }, this)

        });

But there is a button link 'Save as Tile' that I want to remove, but i didn't found anything about it. Could you help me please?

Actually:

What I want to achieve:

Regards,

André

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I only managed the solution by adding the property bSuppressBookmarkButton

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ca.scfld.md.controller.Bas...

Thank you all!

Answers (3)

Answers (3)

marcelo_costa
Explorer
0 Kudos

Thanks Andre,

One other question. Are you update the archive or extend the application ?

Thanks,

Marcelo.

Former Member
0 Kudos

Marcelo,

Extended the application.

Regards,

Andre

marcelo_costa
Explorer
0 Kudos

Andre Mafra,

Are you create the extension in S3.controller.js or S3-dbg.controller.js.

I need to supress the same button but is not correct in my case

Please,

Former Member
0 Kudos

Hi Marcelo, you only modify the *-dbg files. In my case, updated the S3-dbg.controller.js.

Regards,

Andre

Former Member
0 Kudos

Anyone can help ?