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
Yes, You cannot modify Action button using VS Tools alone.
many thanks Rubal
is this also true when it comes to adding something under 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,
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156