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 :
Finance | Project Operations, Human Resources, ...
Answered

Remove Custom Menu Item In Specific Company

(0) ShareShare
ReportReport
Posted on by 125
We have a custom GP Addin where a number of menu items are being added via the AddMenuHandler function.  However, these menu items are showing up in both of the client's GP companies and they want them to only display in a single GP company.   

Since there is no RemoveMenuHandler function available, is there another approach that can be taken with Visual Studio Tools for Dynamics GP to accomplish this?
Categories:
I have the same question (0)
  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at
    There is no simple method of removing the VSTools equivalent of a Dexterity Form Menu Trigger used by the AddMenuHandler function.  You could write code that checks the company logged into and then applies the form menus, but that would not handle switching between companies or preventing it adding the menu multiple times.
     
    I would suggest that you add some code to the menu handling scripts that checks which company is active and displays a dialog and cancels when not needed.  It won't hide it from other companies but will stop it doing anything.
     
    FYI: If you used Dexterity or GP Power Tools to add the form menus, you would be able to enable and disable them dependent on which company you were logged into.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans