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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Howto disable dialog in SysOperation classes

(0) ShareShare
ReportReport
Posted on by 4,067

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

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    236,338 Most Valuable Professional on at
    RE: Howto disable dialog in SysOperation classes

    It's easy - call parmShowDialog(false).

  • Rudi Hansen Profile Picture
    4,067 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 :-)
  • Martin Dráb Profile Picture
    236,338 Most Valuable Professional on at
    RE: Howto disable dialog in SysOperation classes

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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans