Returns an array containing the fully qualified names of all members whose names match the specified search string and that are descendants of the specified member.
To return the names of all members in a dimension that match a search string, use FindMemberOccurrencesInHierarchy. |
<HFMwDimension>.FindMemberOccurrencesInHierarchyEx (bstrSearchText, varTopMember)
Returns an array containing the fully qualified names of the members that match the search criteria; the path lists all members beneath the member specified in the varTopMember argument. In the array items, the member names in the hierarchy are delimited by backslashes. For example, if you search for all entities that begin with the letter “C”, FindMemberOccurrencesInHierarchyEx would return array items similar to the following, and varTopMember would be the parent of the UnitedStates and Canada entities:
The following function returns the names of all Entity dimension members that match the passed search string and that are descendants of the passed member.
Function getEntitiesUnderAncestor(sList, sTopMem) Dim cHFMMetadata, cHFMEntities, cDimension, sarEntity set cHFMMetadata = Server.CreateObject("Hyperion.HFMwMetadata") cHFMMetadata.SetWebSession cHFMSession Set cHFMEntities = cHFMMetadata.entities Set cDimension = cHFMEntities.dimension sarEntity = cDimension.FindMemberOccurrencesInHierarchyEx _ (sList, sTopMem) getEntitiesUnderAncestor = sarEntity End Function