PRB: Incorrect ChildMembers.Count for PivotMember Object (301582)
The information in this article applies to:
- Microsoft Office 2003 Web Components
- Microsoft Office XP Web Components
This article was previously published under Q301582 SYMPTOMS When you use the ChildMembers property of a PivotMember object to retrieve a collection of child members, the child
members collection is empty and the Count property returns zero. CAUSE When you retrieve a PivotMember object by calling one of the following methods or properties, the
PivotMember object that is returned may be "cloned":
- FindMember method
- IncludedMembers property
- ExcludedMembers property
- OrderedMembers property
Cloned members are disconnected; due to the manner in which the
PivotTable component internally handles disconnected members, you may be unable
to retrieve the ChildMembers collection for a cloned member. Likewise, if you retrieve the ParentMember for a cloned PivotMember, you may also be unable to retrieve the ChildMembers for that ParentMember. RESOLUTION To work around this problem, obtain a reference to the PivotMember by calling the FindMember method using the path for that member. This workaround is
illustrated in the More Information section. REFERENCES For additional information about Office Web Components, see
the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 5/5/2006 |
---|
Keywords: | kbOfficeWebPivot kbprb KB301582 |
---|
|