Skip to main content

Notifications

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,278

please somebody help me

*This post is locked for comments

  • Martin Dráb Profile Picture
    232,938 Most Valuable Professional on at
    RE: how to hide or disable menuitemactionstr() in X++

    No, you didn't explain anything at all. You're merely repeating the same thing.

    What's the business requirement that you're trying to implement? (Whether it will be implemented by hiding a button or somehow else will be decided later.)

  • Suggested answer
    ArunGarg Profile Picture
    3,924 on at
    RE: how to hide or disable menuitemactionstr() in X++

    Hi,

    I think you don't want to show particular menu item on the basis of Roles in WorkFlow?

    For that you have to create Privilege, Duties and Roles in AX.

    May be it can help you and solve your problem.

    Regards

    Arun

  • Codehunter Profile Picture
    10,278 on at
    RE: how to hide or disable menuitemactionstr() in X++

    Hope you got my drift this time,Martin

  • Codehunter Profile Picture
    10,278 on at
    RE: how to hide or disable menuitemactionstr() in X++

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

    Menuitemactionstr(name of menu Item) .enabled

  • Martin Dráb Profile Picture
    232,938 Most Valuable Professional on at
    RE: how to hide or disable menuitemactionstr() in X++

    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,278 on at
    RE: how to hide or disable menuitemactionstr() in X++

    please somebody help me

  • David Massey Profile Picture
    on at
    RE: how to hide or disable menuitemactionstr() in X++

    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,278 on at
    RE: how to hide or disable menuitemactionstr() in X++

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

  • Suggested answer
    David Massey Profile Picture
    on at
    RE: how to hide or disable menuitemactionstr() in X++

    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,278 on at
    RE: how to hide or disable menuitemactionstr() in X++

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,157 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,938 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans