ImportData(Schema: IRdsImportSchema);
Schema. MDM dictionary import schema.
The ImportData method imports MDM dictionary data in accordance with settings of import schema passed by the Schema parameter.
Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier. The dictionary contains an import schema.
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 schema.
See also: