IRdsAttributes.Order

Syntax

Order: IRdsAttribute;

Description

The Order property returns a system attribute of a dictionary, which assignment is Element Order.

Comments

This attribute has integer type, cannot contain empty and multiple values. It is hidden by default. Attribute identifier - ORD.

Example

Executing the example requires an MDM dictionary with the DICT_1 identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Dict: IRdsDictionary;
    DictInst: IRdsDictionaryInstance;
    Elements: IRdsDictionaryElements;
    Attrs: IRdsAttributes;
    i, key: Integer;
Begin
    MB := MetabaseClass.Active;
    Dict := MB.ItemById("DICT_1").Bind As IRdsDictionary;
    Attrs := Dict.Attributes;
    key := Attrs.Order.Key; // attribute key
    DictInst := Dict.Open(Null);
    Elements := DictInst.Elements;
    For i := 1 To Elements.Count - 1 Do
        Debug.WriteLine(Elements.Item(i).Attribute(key));
    End For;
End Sub UserProc;

After executing the example values of the Order attribute are displayed in the console for all dictionary elements.

See also:

IRdsAttributes