Share via


Best Practices for Enum Properties

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

The best practices for enum properties are shown in the following table. For more information about the properties, see Base Enum Properties.

Property

Rules

Name

An enum name must either indicate the possible enum values or indicate the type of the enum value.

Examples of enums that are named according to the possible values are InclExcl and NextPrevious.

Examples of enums that are named according to the type of the enum value are ArrivalPostingType and ListStatus.

If you try to create an enum with a name that has already been used for an enum in the previous version of Microsoft Dynamics AX, you will get an error. Error icon

Label

Mandatory.

Help

Mandatory.

The Help property should not be identical to the Label property; give the user a more thorough explanation.

DisplayLength

Set to Auto (to allow IntelliMorph features).

See also

Best Practices for Base Enums

Enums

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