Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Menus for VS Tools for GP customize toolbar

Posted on by Microsoft Employee

Hi,

I created a menu in GP 2013 using Menus for Visual Studio for Dynamics GP 2013 and the menus are there and I can open my forms. But a feature our client want is to be able to add the menu to the toolbar like a shortcut. When I go to the "Toolbar Customization", my menu items aren't there, but the items I added with Dexterity are there. Is there some kind of flag or something special with need to do when we create the menu in C# to be able to add them to the toolbar ?


I'm also looking for the GP 2015 version of the Menus for VS , but can't seem to find them. Did they update them already ?

Thanks for the help.

Hugo DB

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Menus for VS Tools for GP customize toolbar

    Thanks for the detailed explanation David, this answer my question very well.

  • Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: Menus for VS Tools for GP customize toolbar

    I knew this was listed as a limitation in the Menus PDF document, didn't know the reason why, thanks for the full explanation.

    "Limitations
    Menus for Visual Studio Tools for Microsoft Dynamics GP 2013 has the following limitations:
      •  There are a maximum of 100 menu items shared among all of the Visual Studio Tools products using the API.
      • Menu items defined cannot be added to toolbars
      • The menus added with this tool will not be visible to other Dexterity based applications."

  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,917 Most Valuable Professional on at
    RE: Menus for VS Tools for GP customize toolbar

    Hi Hugo

    Support for the Toolbar Customisation window is complex when it comes to Menus for Visual Studio Tools.

    To get menu items to be available in the Toolbar Customisation window you will need to add the menus to memory (as it already does) and also to the syMenuMstr table (which it does not do).

    The problem is that the menus are dynamic and the command ID of the menu used for each of your options is assigned when you register your menu. This is fine for displaying the menus in memory. To get something onto the toolbar would require the menu choice being added to the table, but the command ID could be different every time you log in or switch company. So the data stored in the Toolbar tables which points to a command in the Menus for VST dictionary could point to a non-existent or different command ID.

    It might be possible to work around the issue by allowing you to request a menu item be added to a toolbar dynamically, once you have the menu registered. It will then add the command to the requested toolbar in memory and not use the tables.  That way it will be dynamic as well and can handle working with the dynamic menus.

    As for a version for Microsoft Dynamics GP 2015, you will need to request that from Microsoft. I would suggest logging a support case or using MS Connect.

    David Musgrave

    Original developer of Menus for Visual Studio Tools

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans