GetTreeCapabilities

Returns various properties of a dimension.

Syntax

<IHsvTreeInfo>.GetTreeCapabilities pbReadWrite, pbMultiLevels, pbMultiParents, pbDataVariesByParent

Argument

Description

pbReadWrite

Boolean. Returns TRUE if the dimension can be edited with Metadata Manager, otherwise FALSE.

pbMultiLevels

Boolean. Returns TRUE if the dimension allows parent-child relationships, otherwise FALSE.

pbMultiParents

Boolean. Returns TRUE if the dimension’s members can have multiple parents, otherwise FALSE.

pbDataVariesByParent

Boolean. Returns TRUE if the dimension’s members data varies by parent, otherwise FALSE. This argument should return TRUE only for the Entity dimension.

Example

This example assigns the tree capability properties of the Account dimension to the Boolean variables used as GetTreeCapabilities’ arguments.

Dim cIHsvTreeInfo As IHsvTreeInfo
Dim bRead As Boolean, bTreeView As Boolean
Dim bMultiPar As Boolean, bDataPar As Boolean
Set cIHsvTreeInfo = m_cMetadata.Dimension(DIMENSIONACCOUNT)
cIHsvTreeInfo.GetTreeCapabilities bRead, bTreeView, _ 
bMultiPar, bDataPar