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)

how to hide or disable menuitemactionstr() in X++

(0) ShareShare
ReportReport
Posted on by 10,280

please somebody help me

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Please, how many times do I have to ask you to explain your problem properly? We really can't read your thoughts. If you want others to help you, don't make it so complicated for them.

    Now tell us what you mean by hiding or disable a method. It doesn't make sense. If your goal is to hide a menu item button in a form, why it's not anywhere in your question?

  • Codehunter Profile Picture
    10,280 on at

    I need to hide an action in workflow by using code X++

  • Codehunter Profile Picture
    10,280 on at

    Please explain to me how to hide menu item button in X++

  • Codehunter Profile Picture
    10,280 on at

    Yes Martin, my goal is to know how to hide menu item button in class

  • Suggested answer
    David Massey Profile Picture
    on at

    You've posted multiple requests about handling of workflow menu items (Hiding).  The menu items are driven by workflow metadata and configuration settings.  I suggest you spend some time learning about defining workflows instead of trying to override system defined behaviors through code.

  • Codehunter Profile Picture
    10,280 on at

    I need to hide only menu item action not all the workflow action; I see there's a big difference

  • David Massey Profile Picture
    on at

    I'm not sure you understand.  The menu items displayed within the workflow action are defined by the configuration/state of the workflow.  e.g. Delegate, Reject, Recall; if define as workflow processes can be disabled within a workflow.  If you need conditional enable/disabling of workflow menu items, it may be you need to setup a complex workflow with multiple paths.

  • Codehunter Profile Picture
    10,280 on at

    please somebody help me

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Please tell us what exactly you're trying to do and what's the problem. Note that I don't consider "to hide menu item button in class" to be specific enough, especially since David revealed that you're doing something about workflow.

  • Codehunter Profile Picture
    10,280 on at

    I need to write code X++ firing disabled menu item action and this is what I reached below

    Menuitemactionstr(name of menu Item) .enabled

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