Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

OK button in Dialog

(0) ShareShare
ReportReport
Posted on by

I have a class extended from RunBaseBatch.In the main method ,I have

if (assignment_Level.prompt())

       assignment_Level.run();

when pressing ok, no response happens although the run method has been overwritten. How can I solve this issue ?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: OK button in Dialog

    public Object dialog()

    {

    DialogRunbase dialogRunbase = super();

    ;

    ""Add all your custom dialog fields. "

    return dialogRunbase;

    }

    As shown above, please do it you will get rid of the problem.

    Regards

    Dilliraj

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: OK button in Dialog

    Please review the dialog() method on the class..

    I suspect there is something wrong in this method..

    Please post the dialog() method body, may that will help find out if there is any issue.

    Please update.

  • PA-22040759-0 Profile Picture
    6,194 on at
    RE: OK button in Dialog

    Could you post a list of methods on your class? And if you have changes to the prompt og dialog methods, could you post the contents of these?

  • maram fraij Profile Picture
    on at
    RE: OK button in Dialog

    Yes, this issue is only faced in this class which is created from scratch. I tried to duplicate and modify one of the other classes extended from RunbaseBatch which was developed  by one  of our team before and it work properly, so what is the reason for such a problem?

  • dolee Profile Picture
    11,279 on at
    RE: OK button in Dialog

    Hi,

    Is this only happening to assignment_Level?

    What about other classes that extends from RunbaseBatch?

  • maram fraij Profile Picture
    on at
    RE: OK button in Dialog

    From the debugging in the method promptPrim() at line dialog.wait() when I press ok nothing happens but if cancel is pressed it goes to next code line dialogCanceled = !dialog.closedOk();

  • maram fraij Profile Picture
    on at
    RE: OK button in Dialog

    RunBase method has not been overridden .

    the problem is when pressing ok no boolean value returns and so the run method is not executed at all.

    should I modify any method to make ok button returns true?

  • PA-22040759-0 Profile Picture
    6,194 on at
    RE: OK button in Dialog

    That sounds odd.

    Have you overridden the dialog method from RunBase, and in that case how does it look?

    Try to put a breakpoint on assignment_Level.run(); and debug the code to see if you actually hit the run method.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans