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)

Howto disable dialog in SysOperation classes

(0) ShareShare
ReportReport
Posted on by 4,075

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
    237,965 Most Valuable Professional on at

    It's easy - call parmShowDialog(false).

  • Rudi Hansen Profile Picture
    4,075 on at

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

    It's easy - call parmShowDialog(false).

    Nice so now i owe you a beer :-)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans