cancel
Showing results for 
Search instead for 
Did you mean: 

unable to hide buttons in Detail screen

Former Member
0 Kudos

unable to hide buttons Accept(oPositiveAction) &Reject Button (oNegativeAction) at Rightbottom of detail Screen.

Former Member
0 Kudos

Can you share your code? How are trying to hide that?

Former Member
0 Kudos
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);

};


Former Member
Former Member
Former Member
0 Kudos

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);

Accepted Solutions (0)

Answers (0)