IRdsDictionaryInstance.AssignElements

Syntax

AssignElements(Dimension: IDimInstance);

Parameters

Dimension. Data of repository dictionary that is added in the current MDM dictionary.

Description

The AssignElements method populates tree of elements of the MDM repository with data of the MDM dictionary that is passed by the Dimension parameter.

Example

Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.The repository contains a dictionary with the Dim_1 identifier.

Sub Main;

Var

MB: IMetabase;

Dict: IRdsDictionary;

DictInst: IRdsDictionaryInstance;

DimInst: IDimInstance;

Begin

MB := MetabaseClass.Active;

Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Bind As IRdsDictionary;

DimInst := MB.ItemById("Dim_1").Open(Null) As IDimInstance;

DictInst := Dict.Open(Null) As IRdsDictionaryInstance;

DictInst.AssignElements(DimInst);

End Sub Main;

After executing the example elements of the Dim_1 dictionary are added in a tree of elements of the MDM dictionary.

See also:

IRdsDictionaryInstance