Share via


Accessing window fields

Windows fields for an application dictionary are accessed as properties of the window or scrolling window that they are contained in. For example, the SOP Number (SopNumber) field is available on the Sales Transaction Entry window (SopEntry). To access it, you would use the following syntax:

Dynamics.Forms.SopEntry.SopEntry.SopNumber

 

As another example, the QTY To Backorder (QtyToBackOrder) field is available on the Line Scroll (LineScroll) scrolling window of the Sales Transaction Entry window(SopEntry). To access this field, you would use the following syntax:

Dynamics.Forms.SopEntry.SopEntry.LineScroll.QtyToBackOrder

 

Hint: The IntelliSense in Visual Studio will tell you what field in Microsoft Dynamics GP is being referred to by the expression.

Some fields in windows are called local fields, because they are used only within a specific form. For instance, the Sales Transaction Entry window (SopEntry) contains a local field named (L) BillTo Address 1. The (L) in the name is the standard way local fields are identified in Microsoft Dynamics GP. In a Visual Studio Tools for Microsoft Dynamics GP project, the names of these fields are prefixed with the "Local" to indicate they are local fields. For example, to access the BillTo Address 1 local field, you would use the following syntax:

Dynamics.Forms.SopEntry.SopEntry.LocalBillToAddress1