Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Scrollable dynamic date design

(0) ShareShare
ReportReport
Posted on by 212

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.1447.allocation.png

Thank and regards.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Scrollable dynamic date design

    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.

  • Dynamics365Admin Profile Picture
    Dynamics365Admin 212 on at
    RE: Scrollable dynamic date design

    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.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Scrollable dynamic date design

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans