Udostępnij za pośrednictwem


How Visual Studio Tools was used

This sample application uses the basic features of Visual Studio Tools for Microsoft Dynamics GP.

User interface

The special WinForm available for Dynamics GP add-ins was used when creating the Lookups window.

Resources accessed

The Lookups sample uses the following resources in the Dynamics and SmartList dictionaries:

Forms
  • AboutBox
  • CustomerLookupForm
  • VendorLookupForm
  • IvItemNumberLookupForm
  • AccountLookupForm
  • SopDocumentLookupForm
  • PopDocumentLookupForm
Composites
  • AccountNumberCompositeData
Form-level functions
  • ConvertAcctToStr of the GlAcct form

Events

The Lookups sample registers the following events in Microsoft Dynamics GP:

  • A menu handler event for the AboutBox form, used to open the Lookups window.
  • A click event for the SelectButton field in each of the lookup windows, to notify the Lookups sample that the user clicked the Select button.
  • A validate event for the PopPoLookup field in the PopDocumentLookup window, to prevent the validation from running when the POP Number lookup is opened from a Visual Studio Tools integration. This is a work-around for an issue that causes the POP Number lookup to be closed immediately after being opened.

Web client

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