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)

Adding a button to all GP forms

(1) ShareShare
ReportReport
Posted on by

I am looking for a way to add a button to ALL GP forms. Is there a way to do that without having to build a modifier for each form? 
Also, is there a way for these buttons to tie back to events of forms that is currently open? Maybe through system.reflection?

*This post is locked for comments

I have the same question (0)
  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    That would be a monumental task but it could be done. You would have to identify every desired window and define several values for each window and store these values in either an xml file or a SQL table.

  • Suggested answer
    steveendow Profile Picture
    2,281 on at

    Since you mention Modifier and System.Reflection, I assume you are looking to use .NET to do this?

    I have tried for several years to add a button to a GP form without using Modifier, but so far, it has not been practical.  A colleague and I developed a solution that would allow you to use VS Tools to add a custom .NET button on any GP window, but the prototype wasn't reliable enough. It is quite difficult to overlay a control on a GP window reliably--positioning, resolution, resizing, moving, etc. are challenging.

    I believe David Musgrave may be looking to add some functionality to his Visual Studio Integration Toolkit that would allow for custom controls that could be added to Dex forms using .NET, and perhaps also creating custom windows using .NET.  Those controls and windows could then be managed by .NET.  But it requires a Dex intermediate layer to create those objects.

    It would then be possible to add the controls onto GP windows using Reflection, and also capture events using Reflection.  I have used Reflection with VS Tools AddIns to attach event handlers to multiple windows, and it works well.

    twitter.com/.../1065038563111129088

  • Community Member Profile Picture
    on at

    how would one add a button though. Assuming one can lookup the class names etc of the forms, how would one add the button is the part i dont understand

  • Community Member Profile Picture
    on at

    List boxes, Drop down lists, Combo Boxes can be added using modifier to Dynamics GP forms, but they are not supported for .NET access from visual studio addins. mobdro

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

    You can add a menu item to all windows in the application using Dexterity.

    There are two approaches:

    1) add a menu item to the Tools menu which will be a single entry shared by all windows. (does not work for web client). With this method you cannot tell which window the menu was selected from.

    2) add dynamic form triggers on windows as they are opened this will add an additional menu to the window and you can tell which window the menu was selected from. And it works on the web client.

    Regards

    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