on 07-02-2015 5:18 PM
Hi,
Could someone please guide me on extending the timesheet app. I need to disable the Quick Entry button on the toolbar.
I see that this is in S2.controller.js
I have created an controller extension project and in Component.js file, I see the below:
customizing: {
"sap.ui.controllerExtensions": {
"hcm.emp.mytimesheet.view.S2": {
controllerName: "zhcm.emp.mytimesheet.view.S2Custom",
},
},
Could you please help me with the changes that need to be performed. I am an ABAPer learning Fiori. So still working on UI5 skills..
Thank you...
Manish
This was resolved by extending the controller S2.
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.
Sure Masayuki.. Basically extended controller S2 without copying from parent. Then rewrote getHeaderFooterOptions as below:
getHeaderFooterOptions : function() {
return {
sI18NFullscreenTitle : "TIMESHEET_TITLE"
};
}
I understand that I could have used the controller hook extHookChangeFooterButtons too.
Thank you,
Manish
Hi,
I need to hide the "Quick Entry", I reviewed the view and controller and I found one reference in the getHeaderFooterOptions function, I tried to overwrite this function, but it doesn't work.
Any suggestions?
Regards.
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.
Thank you Krishna for the response. My understanding of Worklist option is that it is actually for requiring WBS entries for time recording. Also modifying this would actually cause issues on CAT2 and on ESS for that profile.
This functionality is only available on Fiori app. Would you know of configurations on the Fiori side of the house?
Thank you,
Manish
Worklist has nothing to deal with WBS in particular. This config would not cause any issue in CAT2, but would remove worklist from CAT2. Worklist in backend is same as Quick entry in Fiori.
I would expect this button to be a dynamic one (based on worklist is checked or not). So you might need to debug the backend service code and enhance OData service to disable it.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.