cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Timesheet app - remove Quickentry

manish_mohan3
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

manish_mohan3
Participant
0 Kudos

This was resolved by extending the controller S2.

Thank you,

Manish

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Manish,

Can you share the solution code to the SCN community?

Regards,

Masa / SAP Technology RIG

manish_mohan3
Participant
0 Kudos

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

Answers (2)

Answers (2)

former_member324407
Discoverer
0 Kudos

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.

manish_mohan3
Participant
0 Kudos

I basically extended S2.controller and re-wrote getHeaderFooterOptions

getHeaderFooterOptions : function() {

  return {

  sI18NFullscreenTitle : "TIMESHEET_TITLE"

  };

  }

This worked for me.

Thank you,

Manish

kammaje_cis
Active Contributor
0 Kudos

Manish,

Before you do enhancement, I would suggest you to try with configuration.

Uncheck "With Worklist".

I have not tried this option, but I would expect this to work.

manish_mohan3
Participant
0 Kudos

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

kammaje_cis
Active Contributor
0 Kudos

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.