HotXLS Docs

TXLSPivotCache class

Unit: lxPivot
In-memory pivot-cache model backing one or more pivot tables; it holds source records, cache fields and shared items

Description

In-memory pivot-cache model backing one or more pivot tables; it holds source records, cache fields and shared items. This object is reached through the owning pivot table, shape collection, worksheet or page setup and is not normally created directly by application code.

Properties

CacheId
SourceRangeSheet
SourceFirstRow
SourceFirstCol
SourceLastRow
SourceLastCol
RecordCount
RefreshOnLoad
RefreshedBy
RefreshedDate
MissingItemsLimit
CreatedVersion
RefreshedVersion
MinRefreshableVersion
EnableRefresh
BackgroundQuery
SaveData
SourceName
SourceRelId
SourceConnectionId
ExternalSourceKind
SourceIsNamedRange
FieldCount
Fields
RecordIndices
FromRawBlobs

Methods

AddField
FindFieldByName
RefreshFromSource
Assign

Represented external relational caches hold on to their connection identity and support explicit provider refresh, cached queries and supported native materialization with no implicit provider I/O

See also

RefreshFromSource(AValueReader) reads the cache's concrete local rectangle; RefreshFromSource(AValueReader, AFirstRow, AFirstCol, ALastRow, ALastCol) reads inclusive 1-based caller-resolved bounds without replacing the cache's source identity, stages all records before commit, and raises on invalid schemas, unsupported values or reader failure

Use TXLSXWorkbook.RefreshPivotCache to resolve supported local defined names and tables automatically; see transactional cache refresh for scope precedence and source boundaries