Update(Data: IRdsDictionaryElementData);
Data. Data that is necessary to update for the element.
The Update method updates element data.
Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.
Sub Main;
Var
MB: IMetabase;
Dict: IRdsDictionary;
Attrs: IRdsAttributes;
DictInst: IRdsDictionaryInstance;
Elements: IRdsDictionaryElements;
Element: IRdsDictionaryElement;
Data: IRdsDictionaryElementData;
Begin
MB := MetabaseClass.Active;
Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Bind As IRdsDictionary;
Attrs := Dict.Attributes;
DictInst := Dict.Open(Null);
Elements := DictInst.Elements;
Element := Elements.Item(1);
Data := Element.Data;
Data.Attribute(Attrs.Name.Key) := New name;
Element.Update(Data);
End Sub Main;
After executing the example data is updated for the first root element of a dictionary.
See also: