Notifications
Announcements
No record found.
please somebody help me
*This post is locked for comments
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?
I need to hide an action in workflow by using code X++
Please explain to me how to hide menu item button in X++
Yes Martin, my goal is to know how to hide menu item button in class
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.
I need to hide only menu item action not all the workflow action; I see there's a big difference
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2