IRdsDictionaryElementData.RecordO

Syntax

RecordO(Options: Variant): IOrmRecord;

Parameters

Options. The option of returned data.

Description

The RecordO property returns element attribute data according to the specified parameter set as an object described by the IOrmRecord interface.

Comments

The Options parameter determines variant of returned data. Available values:

Element attribute values are presented as an object described by the IOrmRecord interface, and are used on advanced search of dictionary elements. If it is assumed to read/change attribute values, use the following properties: AccessAttribute, Attribute, AttributeTranslation, Value, ValueTranslation or the SetAttributeValue method.

NOTE. Frequent addressing the value of the RecordO property may result cause performance issues.

Example

Executing the example requires that the repository contains a table MDM dictionary with the DIM identifier.

Add links to the Metabase, Orm and Rds system assemblies.

Sub UserProc;
Var
    DictInst: IRdsDictionaryInstance;
    Elem: IRdsDictionaryElement;
Begin
    DictInst := MetabaseClass.Active.ItemById("DIM").Open(NullAs IRdsDictionaryInstance;
    DictInst.FetchAll:=True;
    Elem := DictInst.Elements.Item(1);
    Debug.WriteLine("Displayed attribute value: " + Elem.RecordO(0).AttributeValue(4));
    Debug.WriteLine("Attribute value in dictionary table: " 
        + Elem.RecordO(1).AttributeValue(4));
End Sub UserProc;

After executing the example the specified dictionary element is obtained. The development environment console window displays information about displayed value of the specified attribute and the attribute value in dictionary table.

See also:

IRdsDictionaryElementData