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

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,162 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,162 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,162 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

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans