The HsvMetadata type library consists of objects that provide access to metadata information such as the members in a given dimension, dimension member attributes, a member’s label and member ID, and so on. These objects are introduced in HsvMetadata Type Library.
The following examples introduce you to the HsvMetadata type library’s objects:
The IHsvTreeInfo interface returns information on all Financial Management dimensions. For example, you can get the members of a dimension, a dimension’s parent-child relationships, or the member ID of a member. Examples for the following methods introduce this interface:
You can get a member ID by passing the member’s label to GetItemID. The example for GetItemID is a function that gets the ID of a member for a given dimension.
To specify the dimension for which the IHsvTreeInfo interface will obtain information, use the HsvMetadata object’s properties. If the dimension to be queried is not known at design-time, use the Dimension property, which is demonstrated in the GetItemID example. |
EnumAllMemberLabels returns the labels of a dimension’s members.
EnumAncestors returns a given member’s ancestors.
HsvMetadata.IsCustomMemberValidForAccount indicates whether a Custom dimension member is valid for a Account dimension member.
HsvMetadata.IsOrgByPeriodApplication indicates whether the Organization by Period feature is enabled.
Some of the HsvMetadata library objects that represent dimensions return attributes of dimension members. Here are a few examples:
HsvAccounts.GetAccountType returns the account type of an Account dimension member.
HsvCustom.IsCalculated indicates whether a Custom dimension member’s data is calculated.
HsvEntities.GetSecurityClassID returns the ID of an Entity dimension member’s security class.