EnumChildrenAsXML

Returns an XML string of the member IDs, labels, descriptions, or number of children of the specified dimension member’s children. A flag specifies which of these types of information will be returned.

Syntax

<HFMwDimension>.EnumChildrenAsXML (varOBPScenario, varOBPYear, varOBPPeriod, varParentMember, lStartingIndex, lMaxMembers, lFlagsRequestedInfo, pvarbstrXMLDoc, pvarlTotalMembersInEnum)

Argument

Description

varOBPScenario

Pass one of the following:

  • For Organization by Period enumerations, pass the member ID or label of the Scenario dimension member.

  • For non-Organization by Period enumerations, pass -1.

    Note:

    An ID must be cast as a Long subtype.

Input argument.

varOBPYear

Pass one of the following:

  • For Organization by Period enumerations, pass the member ID or label of the Year dimension member.

  • For non-Organization by Period enumerations, pass -1.

    Note:

    An ID must be cast as a Long subtype.

Input argument.

varOBPPeriod

Pass one of the following:

  • For Organization by Period enumerations, pass the member ID or label of the Period dimension member.

  • For non-Organization by Period enumerations, pass -1.

    Note:

    An ID must be cast as a Long subtype.

Input argument.

varParentMember

Specifies the member for which you want to return children. You can pass either a member ID or a member label.

Note:

An ID must be cast as a Long subtype.

Input argument.

lStartingIndex

Specifies the starting index (base 0) within the enumeration for retrieving member information.

Input argument. Long subtype.

lMaxMembers

Specifies the maximum number of members to return. To return all child members, pass 0.

Input argument. Long subtype.

lFlagsRequestedInfo

Specifies the type of information to return. Valid values are represented by the HFMConstants type library constants listed in Metadata Information Constants. You can pass more than one constant by using Or.

Input argument. Long subtype.

pvarbstrXMLDoc

Returns an XML string containing the requested information. The XML string is described in Dimension Member Enumerations DTD.

Output argument.

pvarlTotalMembersInEnum

Returns the total number of the parent’s child members.

Output argument.

Return Value

Returns the number of child members in the XML string that is returned by the pvarbstrXMLDoc argument.