BatchMode: ObjectUpdateDataBatchMode;
The BatchMode property determines an object data update method.
Update is available for tables, time series databases and MDM dictionaries.
Executing the example requires that the repository contains a time series database with the TSBD identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MBDesc: IMetabaseObjectDescriptor;
MUpdate: IMetabaseUpdate;
ObjNode: IMetabaseUpdateDataObjectNode;
Begin
MB := MetabaseClass.Active;
MBDesc := MB.ItemById("TSDB");
MUpdate := MB.CreateUpdate;
MUpdate.BoundType := MetabaseObjectUpdateBoundType.ById;
MUpdate.Description := "Update time series database";
ObjNode := MUpdate.RootFolder.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateDataObjectNode;
//Specify updated object
ObjNode.Object := MBDesc;
//Update options
ObjNode.Label := MBDesc.Id;
ObjNode.UpdatePart := MetabaseObjectUpdatePart.DataMetadata;
ObjNode.BoundType := MetabaseObjectUpdateBoundType.ByKey;
ObjNode.Method := MetabaseUpdateMethod.All;
ObjNode.IncludeChildrenDependencies := TriState.OnOption;
ObjNode.AllowExistingRubricatorUpdate := True;
ObjNode.BatchMode := ObjectUpdateDataBatchMode.Override;
//Save update
MUpdate.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;
On executing the example an update file will be created. This update will include the TSDB time series database. If the created update is applied, data of all series is rewritten and the name, identifier, parent folder and structure of embedded calendar are updated for time series database.
See also: