web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

C# addin toolbars and or actions

(0) ShareShare
ReportReport
Posted on by 40

greetings all

i am looking for a way to either add an action to the Actions button on the SOP entry form

or add a new button to the toolbar that the save and action buttons are on.

any help would be greatly appreciated.

i am using vs2010 to create an addin ( and hoping that i don't have to get Modifier for this )

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Adam,

    Unfortunately, you cannot modify existing GP Windows using the VS Tools. To add a button you will need to use the modifier. You can use the following steps to add button and use it in C# addin

    1. Use the modifier to add button on the form

    2. Use the ‘Dag.exe’ to generate the dll for modified forms dictionary. You can find “dag.exe” GP2010 VS Tools SDK installation folder.

    3. Add reference for the dll generated in previous in your visual studio project

    After this you will be able to add event handler for custom Button, like any other button.

    DynamicsModified.Forms.<form Name>.<Window Name>.<Custom Button name>.ClickAfterOriginal += new EventHandler(<Custom Button name _ClickAfterOriginal);

    Alternatively, you can add a new menu item in Additional menu of the window using following code. You won't need modifier to add additional menu 

     Dynamics.Forms.SopEntry.AddMenuHandler(<menu Click Event handler>,”menu item name”);

    Let me know if you need further detail about either of these two methods

    Rubal,

    http://dynamicsgphelp.com/

  • Adam Himmelman Profile Picture
    40 on at

    many thanks Rubal

    is this also true when it comes to adding something under actions?

  • Community Member Profile Picture
    on at

    Yes, You cannot modify Action button using VS Tools alone.

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

News and Announcements

Season of Giving Solutions is Here!

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans