RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.Get2DDataAsVariant Method

Returns the summary for a two dimensional projection of the current pivot state.

Pascal
function Get2DDataAsVariant(iDimA: Integer; iDimB: Integer; aValueIndex: Integer; bValueIndex: Integer): Variant;
C++
__fastcall Variant Get2DDataAsVariant(int iDimA, int iDimB, int aValueIndex, int bValueIndex);

Call Get2DDataAsVariant to obtain the summary value from the decision cube that corresponds to the coordinates of aValueIndex on the iDimA dimension and bValueIndex on the iDimB dimension. The returned value is a variant that summarizes all values over the other active dimensions, unless they are drilled. For drilled dimensions, only the drilled value is included in the summary. 

The iDimA and iDimB parameters specify the dimensions for the two dimensional projection, where 0 indicates the first active dimension, 1 indicates the second active dimension, and so on. The dimension indexes are expressed as absolute indexes. To obtain an absolute index from a row or column index, use the GetActiveDim method. The aValueIndex and bValueIndex parameters are the indexes of the values on the two dimensions, where 0 indicates the first value, 1 indicates the second value, and so on. Use the GetMemberAsString or GetMemberAsVariant method to obtain the field values that correspond to the aValueIndex and bValueIndex parameters. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!