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 :
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

I have the same question (0)
  • Tim Wappat Profile Picture
    5,711 on at

    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.

  • Pablito Profile Picture
    225 on at

    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,711 on at

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

    Tim.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    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

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans