Skip to main content

Hi Experts,

Is it possible to change the header labels at the grid level?

I would like to modify the Employee Timecard screen to include a label or field just below each day of the week to display the current date for that day. Is this achievable?

Employee Time Card

Thank you in advance!

Regards,

Sagar

HI @sagar07 

You can change this through a customization:

  1. Inspect the element that you want to change
  1. Change the name of the day, although you will not be able to add under it, you will be able to continue it.
  1. Save and publish the customization. 

Hi @kandybeatty49,

Thanks for the response, I know I can change this from Data field but will it be dynamic? As I want Date for respective days. Like for Mon(09-25-2023) and for Tuesday(09-26-2023) and so on for that current week.

 


@sagar07 Have you tried with SetDisplayName? 

Here is the - Example

PXUIFieldAttribute.SetDisplayName

Here is another example for changing the Display Name dynamically @sagar07 

Another Example


Hi @sagar07 ,

To continuing with @Naveen Boga ,

You need to use PXUIFieldAttribute.SetDisplayName for all days fields in RowSelected event.

 PXUIFieldAttribute.SetDisplayName<EPTimeCardSummaryWithInfo.sun>(cache, newDisplayName);

You can implement Switch case for weekdays and increment date in For loop.

Hope, it helps!

Regards,

Sweta

 

 


Reply