Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

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

$
0
0

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:


img_suppress_error.png


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


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>