IMetabaseUpdateDataObjectNode.UpdateRdsSequence

Syntax

UpdateRdsSequence: Boolean;

Description

The UpdateRdsSequence property determines whether the system sequence is updated, which is used to generate element keys in MDM dictionaries.

Comments

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:

Example

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:

IMetabaseUpdateDataObjectNode