Clear;
The Clear method clears a collection of settings.
After calling the method, value of the IRdsDictionaryTranslations.Count property equals to zero.
Executing the example requires an MDM repository that contains the MDM dictionary. The repository identifier is RDS_REPO, the dictionary identifier is RDS_DICT. It is also necessary to add links to the Metabase and Rds system assemblies.
Sub UserSub;
Var
Mb: IMetabase;
RdsRepoDescr: IMetabaseObjectDescriptor;
RdsDict: IRdsDictionary;
DictTransl: IRdsDictionaryTranslations;
Begin
Mb := MetabaseClass.Active;
RdsRepoDescr := Mb.ItemById("RDS_REPO");
RdsDict := Mb.ItemByIdNamespace("RDS_DICT", RdsRepoDescr.Key).Edit As IRdsDictionary;
DictTransl := RdsDict.Translations;
DictTransl.IsOn := False;
DictTransl.Clear;
(RdsDict As IMetabaseObject).Save;
End Sub UserSub;
After executing the example, translation into different languages is disabled for the MDM dictionary. A collection of settings is disabled.
See also: