Add: IRdsLevel;
The Add method creates the MDM dictionary level.
Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Dict: IRdsDictionary;
Levels: IRdsLevels;
Level: IRdsLevel;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Edit;
Dict := MObj As IRdsDictionary;
Levels := Dict.Levels;
Level := Levels.Add;
Level.Id := "Newlevel";
Level.Name := Additional level;
MObj.Save;
End Sub Main;
After executing the example a new level is created in the MDM dictionary.
See also: