IncludeChildrenDependencies: TriState;
The IncludeChildrenDependencies property determines whether child objects should be included in the update.
Executing the example requires that the repository contains a standard cube with the STD_CUBE identifier.
Sub UserProc;
Var
Mb: IMetabase;
MDesc: IMetabaseObjectDescriptor;
Upd: IMetabaseUpdate;
Nd: IMetabaseUpdateObjectNode;
RootFolder: IMetabaseUpdateFolderNode;
NdFol: IMetabaseUpdateFolderNode;
Begin
Mb := MetabaseClass.Active;
Upd := Mb.CreateUpdate;
MDesc := Mb.ItemById("STD_CUBE").Edit;
RootFolder := Upd.RootFolder;
Nd := RootFolder.Add(MetabaseUpdateNodeType.Object) As IMetabaseUpdateObjectNode;
Nd.Object := MDesc;
Nd.IncludeChildrenDependencies := TriState.OnOption;
NdFol := (Nd As IMetabaseUpdateFolderNode);
Debug.WriteLine("Number of dependent objects added to update for object '"
+ MDesc.Name + "': " + NdFol.Count.ToString);
Upd.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;
After executing the example the update containing the specified standard cube and all its child objects is created. The update will be saved to the C:\Update.pefx file.
See also: