Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Howto disable dialog in SysOperation classes

Posted on by 3,987

I have a status field on PurchTable, that i need to change in two possible ways, first i would like to prompt for a value to set the status field to, and second i just want to set it to one specific value.

So i made a Class that extends SysOperation and a DataContract class, just like i am supposed to, and that works fine i have a method in it called statusChange, and when i call that from a menu item, it prompts me for a value to set the field to, and sets it, all 100% Ok.

Now here is my problem, i would like to just make a new method in this class to call for the second option, but in this case i do not need to be prompted for any information, so how do i disable the dialog in this method?

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Howto disable dialog in SysOperation classes

    I should start planning a visit to Denmark... ;)

  • Rudi Hansen Profile Picture
    Rudi Hansen 3,987 on at
    RE: Howto disable dialog in SysOperation classes

    [quote user=""Martin"][/quote]

    It's easy - call parmShowDialog(false).

    Nice so now i owe you a beer :-)
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Howto disable dialog in SysOperation classes

    It's easy - call parmShowDialog(false).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans