UpdateRdsSequence: Boolean;
The UpdateRdsSequence property determines whether the system sequence is updated, which is used to generate element keys in MDM dictionaries.
The property is set to False by default, and while the dictionary is updated the system sequence is not updated. If the value is set to True, on copying MDM dictionaries the system sequence value is updated. The update is executed according to the following algorithm:
The maximum value of the MDM dictionary elements key is determined.
The maximum version value of the MDM dictionary elements is determined.
The maximum is selected from the obtained values and compared to the current value of the repository system sequence.
If the repository system sequence value is less, it is replaced with the selected maximum value.
Executing the example requires an MDM repository with the NSI_1 identifier. This repository contains an MDM dictionary with the Dict_1 identifier.
Sub UserProc;
Var
Mb: IMetabase;
MUpdate: IMetabaseUpdate;
RootFolder: IMetabaseUpdateFolderNode;
Node: IMetabaseUpdateDataObjectNode;
Begin
Mb := MetabaseClass.Active;
MUpdate := Mb.CreateUpdate;
RootFolder := MUpdate.RootFolder;
Node := RootFolder.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateDataObjectNode;
Node.BatchMode := ObjectUpdateDataBatchMode.InsertOnly;
Node.Object := Mb.ItemByIdNamespace("Dict_1", Mb.ItemById("NSI_1").Key).Bind;
Node.UpdatePart := MetabaseObjectUpdatePart.DataMetadata;
Node.UpdateRdsSequence := True;
MUpdate.SaveToFileNF("C:\Dict_1.pefx");
End Sub UserProc;
After executing the example a new update is created. The specified MDM dictionary is included in the update. The dictionary data and metadata is updated. The update is saved to the specified file. If the newly created update is applied elsewhere, the dictionary to be updated is updated with the new data only. Also, the system sequence used for generation of element keys in MDM dictionaries is updated on applying the update.
See also: