Skip to content
Arthur van de Vondervoort edited this page Apr 6, 2024 · 1 revision

Enum values must have non-empty a Caption to be selectable in the client.

This rule checks if Caption property is empty ('') while the the value of the Enum is not empty. This can lead to unexpected behavior, as Enums with an empty caption are not displayed in the (web) client.

Example

enum 50100 "My Enum"
{
    value(0; New) // This will raise the diagnostic
    {
        Caption = '';
    }
    value(1; Undefined) // Locking the Caption will not raise the diagnostic
    {
        Caption = '', Locked = true;
    }
}