Filters and sorts member IDs, using the members in a member list as the filtering and sorting criteria. Given an array of member IDs and an ID of a member list, SortMembersBasedOnList filters out the IDs of those members that are not in the member list, then sorts the remaining IDs according to the order in which the members are defined in the list.
<IHsvTreeInfo>.SortMembersBasedOnList lListID, lListTopMemberID, bIgnoreDuplicates, varalInputItemIDs, varalInputParentIDs, pvaralItemIDs, pvaralParentIDs
Long (ByVal). Identifies whether a member list or the default dimension hierarchy will be used to filter and sort. Pass a valid list ID to use a member list, or pass the HFMConstants type library constant MEMBER_LIST_ALL_HIERARCHY to use the default hierarchy. You can get member list IDs with GetMemberListID. For more information, see GetMemberListID. | |
Long (ByVal). The usage of this argument depends on what you pass to the lListID argument:
| |
Boolean (ByVal). Specifies whether duplicate member IDs are returned. Pass TRUE to filter out duplicates, FALSE to return duplicates. | |
Long array (ByVal). The member IDs to be sorted and filtered. | |
Long array (ByVal). The member IDs of the parent members passed in the varalInputItemIDs argument. The items in these two arrays must have a one-to-one correspondence. | |
Variant array. Returns the filtered and sorted member IDs. The array is returned as a Long subtype. | |
Variant array. Returns the IDs of the parents of the members returned in the pvaralItemIDs argument. The array is returned as a Long subtype. |