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

Announcements

News and Announcements icon
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

I have the same question (0)
  • PA-22040759-0 Profile Picture
    6,194 on at

    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.

  • maram fraij Profile Picture
    on at

    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?

  • maram fraij Profile Picture
    on at

    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();

  • dolee Profile Picture
    11,279 on at

    Hi,

    Is this only happening to assignment_Level?

    What about other classes that extends from RunbaseBatch?

  • maram fraij Profile Picture
    on at

    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?

  • PA-22040759-0 Profile Picture
    6,194 on at

    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?

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans