RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataStore.Refresh Method

Updates the dimension map of the crosstabulated data store.

Pascal
procedure Refresh(DimMap: TCubeDims; bForce: Boolean);
C++
__fastcall Refresh(TCubeDims DimMap, Boolean bForce);

To change the properties of the dimensions in the dimension map, make a copy of the DimensionMap property, make any desired changes to the properties of the TCubeDim objects, and call Refresh, passing in the altered dimension map. The bForce parameter specifies whether the cache should be rebuilt unconditionally. When bForce is false, the cache will not be rebuilt unless the changes require it. 

When the data store is active, call Refresh rather than directly altering the dimension map. Do not call Refresh while the data store is building the cache. Use the BeforeOpen and AfterOpen events to determine when the cache is being rebuilt. 

 

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