by AlexZencovich » Mon Jul 23, 2007 8:33 am
There are 2 types of subcells - children(childs) and leafs. Difference is - child subcells related to another dimension but leafs - related to same dimension by hierarchy.
You may explore all cells by 2 ways
TPivotMap.TopRows/TopColumns then scroll by
var
cell,subcell : ICell;
begin
// scroll topmost dimension cells
for i := 0 to PivotMap.TopRows.ChildCount - 1 do
begin
cell := PivotMap.TopRows.Childs[i]
// scroll leafs if available
for j := 0 to cell.LeafCount - 1 do
subcell := cell.Leafs[j]
// scroll second dimension cells
for j := 0 to cell.ChildCount - 1 do
subcell := cell.Childs[j]
end;
end;
Best regards,
Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment