on 02-05-2015 4:59 PM
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
Hi Lipsa,
Were you able to resolve this? If so, could you please share the solution..
Thank you,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
};
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.