Enumerates the member IDs, labels, descriptions, and number of children of the members in a static member list. A flag specifies which of these types of information will be returned.
You can return members from a dynamic member list with EnumMembers2. |
<HFMwDimension>.EnumMembers (varOBPScenario, varOBPYear, varOBPPeriod, varMemberlist, varTopMember, lStartingIndex, lMaxMembers, lFlagsRequestedInfo, pvaravarlMemberIDs, pvaravarlParentIDs, pvaravarbstrMemberLabels, pvaravarbstrDescriptions, pvaravarlNumChildren, pvarlTotalMembersInEnum)
The member ID or label of the top member in the hierarchy with which to begin enumerating. To start enumerating at the top of the hierarchy, pass either -1 or an empty string. | |
The starting index (base 0) within the enumeration for retrieving member information. | |
The maximum number of members to return. To return all child members, pass 0. | |
Specifies the type of information to return. Valid values for the bits are represented by the HFMConstants type library constants listed in Metadata Information Constants. | |
If WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of member IDs. | |
If EnumMembers is called for the entity dimension, and WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of member IDs for the parents of the list’s members. | |
If WEBOM_METADATA_INFO_LABEL or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of the labels of the list’s members. | |
If WEBOM_METADATA_INFO_DESCRIPTION or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of the descriptions of the list’s members. | |
If WEBOM_METADATA_INFO_NUMCHILDREN or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array indicating the number of child members for each enumerated member. | |
Returns a count of the members returned by this method.
The following function returns the names of the entities that belong to a member list.
Function getEntitiesInMemList(sList) Dim cMetadata, cEntities, cDimension, lCount Dim vaIDs, vaParIDs, vaLabels, vaDescs, vaKids, lTotal 'g_cSession is an HFMwSession object reference Set cMetadata = g_cSession.metadata Set cEntities = cMetadata.entities Set cDimension = cEntities.dimension lCount = cDimension.EnumMembers(MEMBERNOTUSED, MEMBERNOTUSED, _ MEMBERNOTUSED, sList, "", 0, 0, WEBOM_METADATA_INFO_LABEL, _ vaIDs, vaParIDs, vaLabels, vaDescs, vaKids, lTotal) getEntitiesInMemList = vaLabels End Function