Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

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

Posted on by 10,270

please somebody help me

  • Martin Dráb Profile Picture
    Martin Dráb 225,549 Super User 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
    ArunGarg 3,922 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
    Codehunter 10,270 on at
    RE: how to hide or disable menuitemactionstr() in X++

    Hope you got my drift this time,Martin

  • Codehunter Profile Picture
    Codehunter 10,270 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
    Martin Dráb 225,549 Super User 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
    Codehunter 10,270 on at
    RE: how to hide or disable menuitemactionstr() in X++

    please somebody help me

  • David Massey Profile Picture
    David Massey 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
    Codehunter 10,270 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
    David Massey 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
    Codehunter 10,270 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans