IMetabaseUpdateObjectNode.UpdatePart

Syntax

UpdatePart: MetabaseObjectUpdatePart;

Description

The UpdatePart property determines a method of object data updating.

Example

Executing the example requires the update file C:\Update.pefx. The repository must contain a table with the Table_1 identifier.

Sub Main;

Var

MB: IMetabase;

Update: IMetabaseUpdate;

UFN: IMetabaseUpdateFolderNode;

UON: IMetabaseUpdateObjectNode;

Begin

MB := MetabaseClass.Active;

Update := Mb.CreateUpdate;

Update.LoadFromFileNF("C:\Update.pefx");

UFN := Update.RootFolder;

UON := UFN.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateObjectNode;

UON.Object := MB.ItemById("Table_1");

UON.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;

Update.SaveToFileNF("C:\Update.pefx");

End Sub Main;

After executing the example, a table will be added to the update loaded from the file C:\Update.pefx. Then the update is saved. Data, metadata, and access permissions for this table will be updated during update execution.

See also:

IMetabaseUpdateObjectNode