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 :
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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans