cancel
Showing results for 
Search instead for 
Did you mean: 

Weird behavior while Suppress “Bookmarks” button in SAPUI5, Fiori

Former Member
0 Kudos

Some times ago i've successfully suppressed the "Save as Tile" button that exists in the Standard Fiori App, MM_PO_APV:



// Standard application buttons (Remove Forward)
  
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),
  
// Remove the 'Save as Tile' button
  bSuppressBookmarkButton
: true
  
});

But they had updated the SAPUI5 version, I think the lastest, and it comes with a problem. The button is appearing, but with a weird behavior, as you can see:



All my code remains the same, and as I've seen on documentation API, it remains the same too.

Could you help me on how to resolve this?

Regards,

Andre

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Same issue here, with different app (MM_PC_APV). Seems like there is no way to completely hide that button...Which UI5 version are you using? In my case 1.24.2.

Regards,

Fernando