IRdsDictionaryInstance.ImportData

Syntax

ImportData(Schema: IRdsImportSchema);

Parameters

Schema. MDM dictionary import scheme.

Description

The ImportData method imports MDM dictionary data in accordance with settings of import scheme passed by the Schema parameter.

Example

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

Sub Main;

Var

MB: IMetabase;

Dict: IRdsDictionary;

DictInst: IRdsDictionaryInstance;

Import: IRdsImportSchemas;

Begin

MB := MetabaseClass.Active;

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

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

Import := DictInst.Dictionary.ImportSchemas;

DictInst.ImportData(Import.Item(0));

End Sub Main;

After executing the example data is imported into the dictionary in accordance with settings of the first import scheme.

See also:

IRdsDictionaryInstance