Modified forms

Modified forms contain modifications that have been made with the Modifier. To access these modifications from your Visual Studio Tools for Microsoft Dynamics GP project, complete the following procedure:

  1. Create an application assembly for the forms dictionary.

    If the forms dictionary for the application that has been modified doesn't have an application assembly, create one using the process described in Dictionary Assembly Generator. For example, the following command creates the application assembly for the forms dictionary of the core Dynamics GP product:

    dag.exe 0 "C:\Program Files\Microsoft Dynamics\GP\Dynamics.set" /F /N:Dynamics
    
**Hint:** The /N option is necessary because the application assembly uses the name "Dynamics", while the product name in the launch file is "Microsoft Dynamics GP".
  1. Add the reference to the application assembly for your project.

    In Visual Studio, add the reference to the application assembly. The following illustration show the reference added for the application assembly that provides access to modified forms for the Dynamics GP core dictionary.

    Cc543605.VSTDGP_ModifiedFormsRef(en-us,MSDN.10).gif

  2. Access the modified forms.

    Modified forms are accessed through an additional dictionary class that has the same name as the application's dictionary class, but with the additional phrase "Modified". For instance, the dictionary class used to access modified forms for the Dynamics core application is:

    DynamicsModified

The following C# code sets the value of a new field on the Credit Limit window of the Customer Maintenance form. The new field is a local field, added with the Modifier, and named "Test".

DynamicsModified.Forms.RmCustomerMaintenance.RmCreditLimit.LocalTest.Value = "Modified Field";

Hint: When accessing resources that are defined in the main dictionary for an application, access them through the main dictionary class, rather than through the "Modified" class for the application.