Skip to main content
Post a question

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Extension of the standard calendar lookup

Like (1) ShareShare
ReportReport
Posted on 8 Oct 2024 12:49:06 by 77
These days the question arises whether the standard calendar lookup can be extended to additional show the calendar week.
The way I see it, there is a FormControl behind the lookup, which is implemented under Resources:
 

Behind it is an HTML and a JavaScript file:
 
 
2 questions:
Where/how is it defined in that the FormControl “Calendar” is used as the lookup for date fields? In general, the lookup is probably used “automatically” as soon as a date field is displayed somewhere on a form.
 
Is there a way to change / extend the standard HTML and JavaScript files? How would I then bring the changes into the DevOps repository?
 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,483 Most Valuable Professional on 09 Oct 2024 at 13:22:52
    Extension of the standard calendar lookup
    Yes, I think you need to create a lookup form. Then you can, for example, put it to FormHelp property of an EDT to get your lookup form used for controls with this data type.
     
    For example, WHSImplementationTaskLinkLookup form uses a tree control instead of the usual grid, and it's linked to WHSImplementationAction EDT.
  • DerSascha Profile Picture
    DerSascha 77 on 09 Oct 2024 at 12:57:53
    Extension of the standard calendar lookup
    One more question. How can I use a custom created control as a lookup? Do I have to put the control on a form and use this form as a lookup form?
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,483 Most Valuable Professional on 08 Oct 2024 at 13:56:49
    Extension of the standard calendar lookup
    You aren't allowed to change objects in Microsoft packages, such as Application Foundation (where CalendarControl is defined). You can only create new objects (either independent ones or extensions) in your own packages. Therefore you can create your own calendar control, but if you want to change the standard one, you must ask Microsoft to do it.
     
    Note that there F&O doesn't allow changes of resources (such as the .htm file) through extensions.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,409 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,483 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans
Loading started