ExportData(Schema: IRdsExportSchema);
Schema. MDM dictionary export scheme.
The ExportData method exports data of the MDM dictionary in accordance with settings of export scheme 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 export scheme.
Sub Main;
Var
MB: IMetabase;
Dict: IRdsDictionary;
DictInst: IRdsDictionaryInstance;
Export: IRdsExportSchemas;
Begin
MB := MetabaseClass.Active;
Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Bind As IRdsDictionary;
DictInst := Dict.Open(Null) As IRdsDictionaryInstance;
Export := DictInst.Dictionary.ExportSchemas;
DictInst.ExportData(Export.Item(0));
End Sub Main;
After executing the example the dictionary data is exported in accordance with settings of the first export scheme.
See also: