Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

C# addin toolbars and or actions

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

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,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans