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, ...
Suggested Answer

Open a form on clicking OK button on dialog box

(0) ShareShare
ReportReport
Posted on by 53

Hi,

I have a form having employee Id as one of the fields. My requirement is that upon clicking any employee Id in the form , a dialog box should appear on the screen displaying details of the selected employee Id.

Second requirement is that on clicking the OK button of dialog box , a second form should open.

Please help me on this.

Regards

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi rsingh,

    You need to create one dialog form with all the employee detail fields - On the employee Ids button - You can add a jump ref method to call that dialog form - Upon clicking ok button on the dialog form you can call the second form on the closeOk method of the dialog form.

    Refer to the below link for using jump ref method.

    JumpRef in D365 FO

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,827 Moderator on at

    Refer to the form TsTimesheetCreate >> Methods >> closeOk >> Here they will be calling the another form upon clicking of ok button on the dialog form.

    Thanks,

    Girish S.

  • rsingh62 Profile Picture
    53 on at

    Hi Girish,

    Thank u for your response. Here we have created dialog box(class), not dialog form. So I am not sure the steps you mentioned will applicable to dialog class as well.

    Could u please help further.

  • GirishS Profile Picture
    27,827 Moderator on at

    I am not sure its good idea to go with dialog box instead of dialog form.

    Add the Yes or No dialog box inside jumpRef method of the control.

    If it's a dialog box, you need to use Yes or No dialog box.

    If the dialog box Yes is clicked, you can call the second form.

    Refer to the below blog for NoYes dialog box.

    https://shyamkannadasan.blogspot.com/2018/05/x-code-for-dialog-box-in-dynamics-365.html

    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

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans