GPWindow is Everything Dynamics GP. Try the Custom GP Search engine which searches high quality GP Blogs, and the Microsoft Dynamics GP Community Forums.
When using the Modifier to add a list field (drop down list, button drop down list, listbox, multi-select list box) to a window as a local field, the only option available to populate the list was to add static values. This is because there is no functionality available in VBA to add items to a Dexterity list field.
This example shows a method which calls Dexterity sanScript from VBA to get Dexterity to add items to the list field for us. This means that the list field can be dynamically populated based on business rules or data in a table.
Normally, when you call Dexterity sanScript using the Continuum Integration Library, the script is…


It has been a while since I posted some example code, so here is one which demonstrates how to write back data using ADO.
The following VBA example adds the Item Short Description and Standard Cost fields to the Item Transaction Inquiry window and reports. It also allows the Standard Cost to be edited and updated back to the Item Master table.
The VBA code opens the connection when the window…
The following VBA example extends the Reference field on the GL Transaction Entry window from string field of 30 characters to a text field of 200 characters. The first 30 characters of the text field are populated into the original string field so it will contain data when viewed on a non-modified window or report.
The code uses the DUOS (Dynamic User Object Store) to store the contents of the text field when there are more than 30 characters. If there are 30 characters or…
The following VBA example adds the Sales Order Processing User Defined 3 field onto the Receivables Transaction Inquiry window.
When the window is opened the code will obtain the current user's credentials and open an ADO (ActiveX Data Objects) connection to SQL Server. This connection is closed when the window is closed.
The connection object variable has been declared as public so that it can be used by the main window module to read the name of the prompt for…

