Skip to main content

Notifications

Announcements

No record found.

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: C# addin toolbars and or actions

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

  • Adam Himmelman Profile Picture
    Adam Himmelman 40 on at
    Re: C# addin toolbars and or actions

    many thanks Rubal

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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: C# addin toolbars and or actions

    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/

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans