Skip to Content
0

unable to hide buttons in Detail screen

Feb 06, 2017 at 06:01 PM

104

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Former Member
Former Member
0
Former Member
Former Member

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

};


0
Former Member
Former Member
0
* Please Login or Register to Answer, Follow or Comment.

0 Answers