web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Open a Dialog Form from a parent form button

(0) ShareShare
ReportReport
Posted on by 128
I want to open a dialog form from the parent form and while closing that dialog form it redirect to the parent detail page with the record I given in the dialog form. How can I have done this in d365fo?
I have the same question (0)
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    To open a dialog form from a parent form, you can follow these steps:
    Create a Dialog Form:
    • Design and create the dialog form you want to open from the parent form.
    Parent Form Button Action:
    • Set up a button on the parent form with an action to open the dialog form.
    • In the button action method, use the dialog function to open the dialog form.
    • Pass parameters or context to the dialog form if necessary.
    Handle Dialog Form Closure:
    • Within the dialog form, handle the logic when closing the dialog. This could involve saving data or selecting a record.
    Redirect to Parent Detail Page:
    • After closing the dialog form, redirect to the parent form detail page using element.args() and passing the necessary parameters or context back to the parent form.
    Best regards,
    Kevin
  • Viswanath M Profile Picture
    128 on at
    can you explain this with some codes.
  • André Arnaud de Calavon Profile Picture
    301,088 Super User 2025 Season 2 on at
    Hi Viswanath,
     
    I don't have directly some x++ coding for you, but a solution direction. I hope this will be helpful. On the details view, you can go to the Options page on the action menu bar. There is an action Get a link. You can reverse engineer the coding behind this function. It is an option to create and browse to a deeplink that can be used when closing a dialog. 
     
    I created a slider dialog in the past and calling the Dynamics environment with some changes in the URL to change a session language. Probably some parts might be similar to your requirement. You can download the source code on my blog site: Session Language - Dynamicspedia 
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans