Compartir a través de


How Visual Studio Tools was used

This sample application uses several features of Visual Studio Tools for Microsoft Dynamics GP to implement this integration.

User interface

The special WinForm available for Dynamics GP add-ins was used when creating the Estimate Freight window. The customized buttons and images were also used. The sample illustrates technique that can be used to implement window-level notes and the online help link.

Resources accessed

The Estimate Freight sample uses many resources in the Dynamics dictionary:

Forms
  • SOPEntry
  • FormNote1
  • FormNote2
  • FormNote3
  • FormNote4
  • FormNote5
Windows
  • SOPEntry
Global procedures
  • CheckForNote
  • CheckNoteIdString
  • GetNextFormNoteToOpen

Tables

Data from the following tables is accessed to compute the estimated freight for the current sales document:

  • IvItemMstr (Inventory Item Master)
  • SopLineWork (SOP Line Work)
Form-level functions
  • DexDefaultsRead of the SyVisualStudioHelper form
  • DexAsk of the SyVisualStudioHelper form
  • DexError of the SyVisualStudioHelper form
  • DexWarning of the SyVisualStudioHelper form
  • DexRuntimeGetClientType of the SyVisualStudioHelper form
  • DexWinHelpLaunchUrl of the SyVisualStudioHelper form

Events

The Estimate Freight sample registers the following events in Microsoft Dynamics GP:

  • A menu handler event for the Sales Transaction Entry form, used to open the Estimate Freight window.
  • A form close event on the Sales Transaction Entry form, used to indicate when the Sales Transaction Entry window has been closed.
  • A watch event for the SOP Number field in the Sales Transaction Entry window, used to keep the Estimate Freight window updated with the current sales document.
  • An enter event for the Freight field in the Sales Transaction Entry window, used to ask the user whether they want to estimate the freight amount if a value hasn't been supplied.
  • Several form close events for the various "Note" forms in Microsoft Dynamics GP, used to keep the Note button on the Estimate Freight window updated.

Web client

The Estimate Freight sample uses dynamic rendering to work in the web client.