Re: Which development tool to use
I think I'll respectfully disagree with the previous post. I think there's a time and place for each of the tools. But if you wish to modify the appearance of GP windows, as your post mentions, your only options are Modifier/VBA or Dexterity. The Visual Studio Tools could move things around on a window via code, but cannot add new content to a window.
In the plus category for Modifier/VBA is that it is significantly easier to learn than Dexterity, especially if you've used VBA in another environment. However, the previous poster did correctly stated that there are some tricky things with Mod/VBA. But I wouldn't throw the baby out with the bath water. It's the only tool available that will allow you to modify 3rd party windows, such as windows in any ISV product or in any non-core dictionary (like project accounting, manufacturing, etc.)
I have a couple of tips for you in using Modifier/VBA. First of all, you can aquire the GP User's connection to the database. This will allow you to read/write data to the SQL Server without storing your own credentials. If you're a GP customer or partner, you should be able to view this link:
https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?WTNTZSMNWUKNTMMYLSVQUSPTNTNSMQPYYNZMZXKRZNPNZRUKVTTXVTZOWQZZZLTMTTXXZOWULTMRWXLZLQKYZVXLYSSMRPNX
Also, when doing record management in Mod/VBA, many windows contain the fields "Save Record" and "Display Existing Record". These fields are invisible, usually below the window area. With Modifier, you can make them visible and drag them onto the window surface. Once they are displayed, you can "Add fields to Visual Basic", and then make them invisible and drag them back to where they were. Now that they are added to your VBA project, you can add code to the "DisplayExistingRecord_AfterUserChanged" event, and then the "SaveRecord_AfterUserChanged". Alternatively, you can add code to the "SaveRecord_BeforeUserChanged" event and even stop the save by setting the optional byref parameter "Cancel" = True.
Good luck.
Ron Draganowski
Solution Services Practice Manager
Olsen Thielen Technologies, Inc.
St Paul, Minnesota
rdrag@ottechnologies.com
http://www.ottechnologies.com
Find me on LinkedIn: http://www.linkedin.com/in/rondraganowski