Hello
I want to design a form in which there is a requirement to add dynamics date as attached in the screenshot below. The dates are separated by a six months gap in the screenshot but in our case, we need the date to be separated by 7 days (weekly dates) and should be scrollable from the bottom of the tab. The dates actually represent column headers here.
I referred to ResActivityResourceBooking form (standard form) available in the application explorer as it looked similar to what was needed but couldn't figure it out much.
Please help on this. Feel free to ask for any clarifications.
Thank and regards.
In TsTimesheetLineWeek table there will be field named Hours - Edt mapped will be TsWeeklyHours - In that Edt expand the array elements and you can see 7 array elements for Mon to Sun.
When you add that control to form design it will create 7 controls - Label for the control is set at setLineGridDays method where the label for each control using the for loop. Implement the same for your scenario.
Thanks,
Girish S.
Hi Girish
Thank you for your response.
I went through the timesheet form code as told by you. I found some snippets of code that could be helpful in our case but yet, I am not sure which functions I should include in my case to fulfill the requirement of displaying dynamic dates.
Could you please give some more insights as to which function exactly will help us?
Your response will be highly appreciated.
Thanks and Regards.
Hi,
Refer to the standard timesheet form. They will be using edt array elements and they will set label for date values dynamically.
See how they implemented it.
Thanks,
Girish S.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156