cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove "Save as Tile"/ Share icon from standard Fiori Applications?

Former Member
0 Kudos

Hi Experts,

I need to remove "Save as Tile" option from all the views from my standard Fiori application "My Timesheet".

Please guide me how can I achieve it.

Because with this option available, when users click on "Save as Tile", a Weekly Tile is created in the launchpad which behaves inappropriately.. i.e.

Even after the whole week is approved, it still allows users to enter new entries.

Customisations do not take effect in such a tile. Please let me know how to disable/remove it.

Regards,

Lipsa

Accepted Solutions (0)

Answers (4)

Answers (4)

manish_mohan3
Participant
0 Kudos

Hi Lipsa,

Were you able to resolve this? If so, could you please share the solution..

Thank you,

Manish

Former Member
0 Kudos

Hi Manish,

In s3 controller, Please override getHeaderFooterOptions method to hide standard buttons or to add new buttons in footer for scfld.

Regards,

Arun.

manish_mohan3
Participant
0 Kudos

Thank you for your response Arun.

I did try doing it as below: but it did not work..

o.bSuppressBookmarkButton = true;

Any thoughts...

Thank you,

Manish

Former Member
0 Kudos

Yes Manish. this.oHeaderFooterOptions.bSuppressBookmarkButton = true should work. Can you enable debug points and can check whther this line is getting executed or not.

manish_mohan3
Participant
0 Kudos

Hi Arun,

I tried this as you suggested but I get the below error:

Uncaught TypeError: Cannot set property 'bSuppressBookmarkButton' of undefined

Please note that I am trying to hide this in the timesheet app.

We have the method getHeaderFooterOptions. I was able to disable other buttons on the footer except for this Share button.

Please let me know if there is anything else I can try...

Thank you,

Manish

Former Member
0 Kudos

Hi Manish,

implement the below changes in the last lines of getHederfooteroptions method.

var m = new sap.ui.core.routing.HashChanger();

var u = m.getHash();

o.bSuppressBookmarkButton = true;

// if (u.indexOf("Shell-runStandaloneApp") >= 0) {

// o.bSuppressBookmarkButton = true;

// }

if (this.extHookChangeFooterButtons) {

o = this.extHookChangeFooterButtons(o);

}

return o;


Regards,

Abdu

manish_mohan3
Participant
0 Kudos

Thank you Abdu, this worked...

Former Member
0 Kudos

Hi Lipsa,

For your issue, just extend S3 controller and override getHeaderFooterOptions method.By using below code snippet, you can hide forward,share buttons in a Fiori app.

getHeaderFooterOptions : function() {

  var that = this;

  return {

  sI18NDetailTitle : "DETAIL_TITLE",

  oPositiveAction : {

  sI18nBtnTxt : that.resourceBundle.getText("APPROVE_TITLE_TEXT"),

  onBtnPressed : jQuery.proxy(that.handleApprove,that)

  },

  oNegativeAction : {

  sI18nBtnTxt : that.resourceBundle.getText("REJECT_TITLE_TEXT"),

  onBtnPressed : jQuery.proxy(that.handleReject,that)

  },

  oAddBookmarkSettings : {

  title: that.resourceBundle.getText("DETAIL_TITLE"),

  icon  :"sap-icon://Fiori2/F0372"

  },

  buttonList : [ {

      sId : "sendBtn",

  sI18nBtnTxt : "SEND_BUTTON_TEXT",

  onBtnPressed : jQuery.proxy(that.handleSend, that)

  },

//Hide forward button

/* {

  sI18nBtnTxt : that.resourceBundle.getText("FORWARD_BUTTON_TEXT"),

  onBtnPressed : jQuery.proxy(that.handleForward,that)

  }*/ ],

  //Hide Navigate to FS PO app button

  /*additionalShareButtonList : [ {

  sI18nBtnTxt : that.resourceBundle.getText("NAVIGATE_TO_FS_TEXT"),

  onBtnPressed : jQuery.proxy(that.handleNavigateToFS, that)

  } ],*/

  //Suppress book mark button,once these two buttons are disabled..share button will be disabled

  bSuppressBookmarkButton : true,

  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)

  };

  },

Regards,

Arun.

Former Member
0 Kudos

Hi ,

Please help me disabling the "Save as Tile" option from standard fiori applications.

I already have extended the application, though in Web IDE I see the option disabled by default, however, it still shows up after its deployed.

Do I need to check something here?

Regards,

Lipsa

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lipsa,

If you share your code, SCN members can test it and may find something.

Pankaj has already given the coding hint. I think only you to debug why the code does not work.

Regards,

Masa / SAP Technology RIG

pankaj_bisht
Contributor
0 Kudos

Hi Lipsa,

You could extend the app and then in the controllers suppress this button in the getHeaderFooterOptions : function()

add

objHeader.bSuppressBookmarkButton = true


Best Regards

Pankaj



Former Member
0 Kudos

Hi Pankaj,

Thanks for reply.

I have already tried this setting. It does not work.

Could you please suggest any other idea?

Regards,

Lipsa

former_member184515
Participant
0 Kudos

Hi Pankaj,

I tried using the below code for HCM_TS_APV

bSuppressBookmarkButton = true;

But, its not working. Can you please help.

Regards,

Laxman

Former Member
0 Kudos

Thank you. It worked in PO.

var l = {

  oPositiveAction: {

  sI18nBtnTxt: t.resourceBundle.getText("XBUT_APPROVE"),

  onBtnPressed: jQuery.proxy(t.openApproveRejectDialog, t, ['approve'])

  },

  oNegativeAction: {

  sI18nBtnTxt: t.resourceBundle.getText("XBUT_REJECT"),

  onBtnPressed: jQuery.proxy(t.openApproveRejectDialog, t, ['reject'])

  },

  bSuppressBookmarkButton : true,

  buttonList: [{

  sId: "btn_Forward",

  sI18nBtnTxt: "XBUT_FORWARD",

  onBtnPressed: jQuery.proxy(this.handleForward, t)

  }],

  onBack: jQuery.proxy(function() {

  if (sap.ui.Device.system.phone) {

  window.history.go(-1)

  }

  }, this)

  };