UpdateOrder: MetabaseObjectUpdateOrder;
The UpdateOrder property determines the order of updating of objects data.
To determine a method of object data update, use the IMetabaseUpdateObjectNode.UpdatePart property.
Executing the example requires the update file C:\Update.pefx. The repository must contain a table with the Table_1 identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
UFN: IMetabaseUpdateFolderNode;
UON: IMetabaseUpdateObjectNode;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFileNF("C:\temp\Update.pefx");
Update.Prepare; //
UFN := Update.RootFolder;
UON := UFN.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateObjectNode;
UON.Object := MB.ItemById("Table_1");
UON.UpdateOrder := MetabaseObjectUpdateOrder.Default_;
UON.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;
Update.SaveToFileNF("C:\temp\Update.pefx");
End Sub UserProc;
After executing the example the default order of object data update is set. After this a table will be added to the update loaded from the C:\Update.pefx file. Then the update is saved. Data, metadata, and access permissions for this table will be updated during update execution.
See also: