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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Need to select Ok button by default

(0) ShareShare
ReportReport
Posted on by

Hi, I am new to AX. I have a class extends Runbase, I am  getting value from dialog box. In dialog box 3 text field, ok and cancel button are there. If I press enter key at text field the application crashes. If I click Ok button it is working fine.

I want to set by default Ok button, if enter key is pressed at any of the text field.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    By default, clicking Enter should cause OK button to be clicked. Perhaps you made some mistake in your code.

    Check Tutorial_RunBaseBatch class, there it works.

  • WillWU Profile Picture
    22,363 on at

    Hi praveenrajms,

    Please check the event viewer for more details.

  • Community Member Profile Picture
    on at

    Nope, In Tutorial_RunBaseBatch class, if I press enter key, application crashes.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Then it's something wrong in your system. Not in your class.

  • Community Member Profile Picture
    on at

    Can I create a separate form for this dialog box and call the class from that form?

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Sure. But if all RunbaseBatch based dialogs are crashing in your system when you press enter, I warmly recommend to look into it. This has much wider impact in your system than just the one dialog that you are implementing now.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 657

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 615 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans