Skip to main content

Notifications

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

how to design the form about clicking New Button in a form and can open a dialog form on the parent form to create record

(0) ShareShare
ReportReport
Posted on by

Description: i want to design form , that i can click New Button in the parent form , and will open a dialog form to create new record, but i don't know how can realize it when the New Button is s sysdefinedNewButton,, please give me some suggestions,Thanks!

pastedimage1676289443432v1.png

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: how to design the form about clicking New Button in a form and can open a dialog form on the parent form to create record

    Hi Sachin, Have you followed the suggestions in this thread? I think you have duplicated it.

    community.dynamics.com/.../how-to-design-the-form-about-clicking-new-button-in-a-form-and-can-open-a-dialog-form-on-the-parent-form-to-create-record

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: how to design the form about clicking New Button in a form and can open a dialog form on the parent form to create record

    Hi sachin mittal,

    You can override the create method of form datasource and call the dialog form(Calling menu item via code) you created - So when you click New button, create method of form datasource will be called and the dialog form will be opened. On closeOk of the dialog form you can call the details form.

    For reference you can take a look at TsTimesheetEntry form.

    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…

Vahid Ghafarpour – Community Spotlight

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

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans