on 02-06-2017 6:01 PM
unable to hide buttons Accept(oPositiveAction) &Reject Button (oNegativeAction) at Rightbottom of detail Screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share your code? How are trying to hide that?
onDataLoaded: function(oEv) { var that = this; var oLocalHeaderFooterOptions = { oPositiveAction: { id:"btn_acceptsingle", //bDisabled : true, sI18nBtnTxt: that.resourceBundle.getText("XBUT_APPROVE"), onBtnPressed: jQuery.proxy(that.openApproveRejectDialog, that, ['approve']) }, oNegativeAction: { sId: "btn_rejectdouble", sI18nBtnTxt: that.resourceBundle.getText("XBUT_REJECT"), onBtnPressed: jQuery.proxy(that.openApproveRejectDialog, that, ['reject']) }, buttonList: [{ sId: "btn_Forward", sI18nBtnTxt: "XBUT_FORWARD", onBtnPressed: jQuery.proxy(this.handleForward, that) }], onBack: jQuery.proxy(function() { if (sap.ui.Device.system.phone) { //Back-button on s3 screen is only displayed on mobile phones window.history.go(-1); } }, this) if (this.extHookSetHeaderFooterOptions) { oLocalHeaderFooterOptions = this.extHookSetHeaderFooterOptions(oLocalHeaderFooterOptions); } this.setHeaderFooterOptions(oLocalHeaderFooterOptions); };
i have tried these solutions but nothing worked :
http://stackoverflow.com/questions/26144794/hide-approve-reject-buttons-in-fiori-master-details-page
i have tried these all ways , but nothing worked
i had tried using following in onint()
1. this._oControlStore.oButtonListHelper.mButtons["btn_acceptsingle"].setVisible(false);
2. this.oLocalHeaderFooterOptions .oNegativeAction = undefined;
this.setHeaderFooterOptions(this.oLocalHeaderFooterOptions);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.