Udostępnij za pośrednictwem


Naming Conventions

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

Naming conventions contribute to consistency and to making the application easier to understand.

The following topics provide naming rules for application objects:

Best Practices for Labels

Naming Conventions: Name Structure

Naming Conventions: Use of Uppercase and Lowercase

Naming Conventions: Underscores

Naming Conventions: Abbreviations

Naming Conventions: Prefixes

Naming Convention: Automatically Generated Names

Naming Conventions: Variables

Naming Conventions: License Codes

Naming Conventions: Delegates and Event Handlers

Naming Conventions: Methods

General Rules

  • All names must be in U.S. English.

  • The default rule is to use logical and descriptive names if no other specialized rules apply.

  • Identifier names have a limit of 40 characters.

  • Names in the Application Object Tree (AOT) and in X++ code must correspond to the names in the U.S. English user interface.

  • Names must be spelled correctly.

  • Names must be used consistently.

  • Each path in the AOT must be unique; nodes must not have identical names.

  • All texts that appear in the user interface must be defined by using a label. (This rule applies only if you want your solution certified as an international solution.)

  • Do not begin a name with "aaa", or "CopyOf". Do not begin a name with "DEL_" unless it is a table, extended data type or enum, and it is needed for data upgrade purposes. Names that use these prefixes cause a best practices error when you check the objects into the version control system.Error icon

  • We do not support an EDT with the same name as a Table, EDT, Base Enum, or Class.

Rules are available about the following:

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