Condividi tramite


How to: Validate the Style of a New Form

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The Microsoft Dynamics AX Development Workspace includes the form style best practice tool. You use the form style best practice tool to verify that the form follows the design pattern guidelines for the specified style. You use the Design.Style property of the form to specify the style of the form. The form style best practice tool helps you create forms that look and behave like existing Microsoft Dynamics AX forms. For information about templates, form styles, and design patterns, see Form Overview.

The form style best practice tool compares the structure and property values of a form to a template based on the form design pattern. A design pattern is a set of guidelines that standardize the appearance and use of the form. The form style best practice tool produces a list of the differences between the form and the template for the specified form style. In addition, you can quickly correct many of the issues that are found.

Note

Many form style violations do not prevent the form from opening or completing a task. However, a form with violations might not appear or behave like other forms that perform the same type of task. You should carefully evaluate the affect of any violations that you decide to ignore.

The following steps describe how to use the form style best practice tool.

To validate the form

  1. In the AOT, expand the Forms node, and then expand the form that you want to validate.

  2. Expand Designs, and then click Design. In the property sheet, verify that the Style property identifies the style for the form.

    Note

    The value of the Style property identifies the template that the form style best practice tool uses to validate the form. Typically, the value is set when you use a template to create the form.

  3. Right-click the form, click Add-Ins, click Check form style best practices. The Form style analysis window opens. The Violations tab shows a list of the differences that were found.

  4. Review the issues identified in the Violations found list. Click the violation you want to fix.

    If the Fix violation button is enabled, click the button to have the form style best practice tool make the changes that are required to fix the violation. If the Fix violation button is disabled, you have to use the AOT to manually add the control, move controls in the form design, or set a property value.

  5. To refresh the list of violations in the Form style analysis window, click the Re-analyze button. If the Violations found list shows additional issues, repeat the previous step until all the issues have been resolved.

  6. Close the Form style analysis window, and save the changes to the form.

See also

How to: Convert an Existing Form to a New Style

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.