Udostępnij za pośrednictwem


Running the sample application

To run this sample application, perform the following steps:

  1. Extract the .zip archive containing the samples.

    In the folder where Visual Studio Tools was installed, locate the Samples.zip archive. This archive contains both the C# and Visual Basic versions of the samples. Extract this archive to a location that you have permissions to access.

  2. Open the Field Defaulter sample solution.

    Using Visual Studio, open the solution file FieldDefaulter.sln for the C# or Visual Basic version of the sample.

  3. Verify the references for the sample solution.

    Use Visual Studio to view the references for the project. The Estimate Freight sample should include references to the following assemblies:

    • Application.Dynamics

    • Microsoft.Dexterity.Bridge

    If any of these references for the project are not valid, re-add them to the project.

  4. Set the Solution Configuration.

    Set the Solution Configuration to Release to build the release version of the application.

  5. Build the application.

    From the Build menu, choose Build Solution. If there are no build errors, the assembly for the Field Defaulter application will be built.

  6. Install the Field Defaulter assembly.

    Copy the FieldDefaulter.dll from the Release folder for the project to the AddIns folder in the Microsoft Dynamics GP installation.

  7. Start Microsoft Dynamics GP.

    The Field Defaulter sample application will be loaded.

  8. Open the Customer Maintenance window.

    In Microsoft Dynamics GP, open the Customer Maintenance window.

  9. Enter a ZIP Code.

    For demonstration purposes, this sample application recognizes only a small number of ZIP codes. You can enter any of the follow ZIP codes and have the corresponding City and State filled in:

    02109

    58104

    53151

    58474

    55111

    60605

    56560

    85012

    58078

    95014

    58102

    98052

    58103

     

    When you have finished, close Microsoft Dynamics GP.