Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to remove or disable a menu item

(0) ShareShare
ReportReport
Posted on by 225

Hi:

Title says it all really. I'm customizing a third party addin for which I don't have the code. I'm using Modifier and VST and would like to remove a top level menu item from one of their windows to avoid any confusion (we don't need the functionality). Though I can see the name of the top menu entry (and both actionable sub-items) in Modifier under the Form Definition, I see no way to delete/hide/disable them.

Likewise, I've been through the various form and window properties, functions, etc. in VST and don't see anything relevant. The only thing related is the AddMenuHandler method under the form object. There doesn't appear to be any way to get hold of the menu list as far as I can see. Am I missing something?

Paul

*This post is locked for comments

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,042 Most Valuable Professional on at
    RE: How to remove or disable a menu item

    Hi Tim and Paul

    Visual Studio Integration Toolkit can do what you want.

    If you can identify the Dictionary, Command Form and Command that the menu is based on then you can use the GetTagByName() function to get the Menu Tag.

    Then you can use the Disable() function to disable the Tag.

    Problem solved.

    David

  • Tim Wappat Profile Picture
    5,703 on at
    RE: How to remove or disable a menu item

    I agree, looks like  that tool is not going to help you.

    Tim.

  • Pablito Profile Picture
    225 on at
    RE: How to remove or disable a menu item

    David's product description seems to suggest that the tool is mainly to add and manipulate new menus. I'll perhaps try downloading it to give it a go, but the security route might be a good option though I'm not sure if the third party has setup tasks on such a granular level.

    Thanks,

    Paul

  • Tim Wappat Profile Picture
    5,703 on at
    RE: How to remove or disable a menu item

    The menus are outside the reach of VST.

    The Visual Studio Integration Toolkit allows access to menus for creating your own, by adding a bridge DIC that lets you get into the command lists etc that drive the menus in GP.

    You might find it useful to contact David who wrote it, I'm not up to date with its new features, it could be that it would allow this.

    www.winthropdc.com/products_VSIT.htm

    Otherwise, you could investigate removing access through the standard GP security, it may be possible to get to some SQL that would prevent access for all users that could be ran by your add-in on start.

    Tim.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans