HotXLS Docs

Owned embedded OLAP cellsets

Refresh, query and materialize explicitly

Version 2.384.367 adds a finite provider-authoritative path for an existing embedded model and its native OLAP Pivot view

A caller-owned TXLSPivotOlapProvider supplies the paired model artifact and server cellset through Fetch; the library does not decode the proprietary model, run MDX locally or infer server measures from displayed worksheet totals

  1. Call TXLSXWorkbook.RefreshOlapPivotCache(CacheId, Provider, Request, Limits, OnProgress, Budget) to fetch and publish the owned model body and matching cellset together
  2. Call TXLSPivotCache.QueryOlapCells(Selection, Limits) to obtain a detached selection of current cached tuple/measure cells without provider I/O or local reaggregation
  3. Call TXLSXWorkbook.MaterializeOlapPivot(Table, Limits, OnProgress, Budget) to write current authoritative values to the original native view's represented numeric coordinates

Refresh leaves existing worksheet results unchanged until explicit materialization; ordinary Open, Save and cached queries never fetch from the provider

Successful refresh or materialization returns 1 and cancellation returns 0; unsupported identities or stale state and exceeded budgets use the existing Pivot query exception categories

The caller frees the returned TXLSPivotOlapCellset; its detached values remain valid after the workbook is released

Admitted native view

The initial version 2.384.367 profile requires one existing embedded model body, one external OLAP cache and one native view with one row hierarchy, one column hierarchy, a column data axis, two server measures, nine complete tuples and eighteen existing numeric result cells

Schema-returned dimension, hierarchy, level, All, leaf and measure unique names are identities; each leaf also has a complete checked SourceItemIndex into its actual native shared-item projection, with -1 reserved for All

Captions are a source sanity check and never create unique names; incomplete maps, extra axes, grouped or filtered layouts and ambiguous native ownership refuse admission

The qualified genuine view retains its original A3:G8 layout and writes the eighteen numeric results in B6:G8, preserving headers, styles and unrelated cells

The server's nonadditive grand margin remains the ratio returned for its All tuple, rather than a sum or average of displayed member margins

Provider contract and selection

TXLSPivotOlapRequest carries the requested unique-name maps, explicit tuples and source identities; the library binds the actual cache, connection, model part, layout digest and source generation before the call

The provider echoes RequestIdentity and returns SemanticRevision, ModelBody, its SHA-256 ModelDigest, and cells with exact tuple/measure coordinates

The published TXLSPivotOlapCellset exposes its detached domain through HierarchyCount, MemberCount, MeasureCount, TupleCount and CellCount, the retained KPI set through KPICount and KPIs[Index], the digest of its retained native member order through NativeOrderDigest, and single result values through CellValue(TupleOrdinal, MeasureUniqueName), which resolves one cell by tuple ordinal and measure unique name

Each domain element also reads back as a typed record through indexed properties: Hierarchies[Index] returns a TXLSPivotOlapHierarchy (unique names for the hierarchy, dimension, level, and All member, plus the caption), Members[Index] a TXLSPivotOlapMember (hierarchy and source-item indices, unique, level, and parent names, caption, All and calculated flags), Measures[Index] a TXLSPivotOlapMeasure (unique name, caption, number format), Tuples[Index] a TXLSPivotOlapTuple (ordinal and member indices), and Cells[Index] a TXLSPivotOlapCell (tuple ordinal, measure index, value kind, and the number, text, Boolean, or error-code value); KPIs[Index] returns a TXLSPivotOlapKPI (unique name, caption, properties)

The provider is responsible for the semantic truth of that model-body and server-cell pairing; the digest verifies owned artifact bytes and does not prove semantic equivalence or decode model contents

TXLSPivotOlapSelection selects tuple ordinals and measure unique names, with empty selection arrays retaining the complete domain; returned tuple ordinals preserve their original identity

The DTO and cached-query model distinguishes empty, null, number, string, Boolean and represented Excel error values; the actual native worksheet materialization qualified here uses numeric server cells, so arbitrary nonnumeric native materialization is not claimed

Atomic ownership and resource limits

Requests, response arrays and model bytes are detached before later callbacks can mutate retained aliases; the published cellset keeps no provider or workbook reference

All allocations, dependency checks, callbacks and source revalidation precede model/cellset publication; final source generation, owner, model digest and complete cache plans are rechecked before nonallocating swaps

Materialization stages every value and checks existing output cell ownership before publishing any cell; formula, legacy array-member, dynamic-array, merge and rich-value metadata owners remain explicit refusal boundaries

Cancellation or refusal publishes no partial library-owned model, cellset or grid state; a callback's own direct user mutations remain the caller's changes and are not silently rolled back

XLSDefaultPivotOlapLimits supplies the finite defaults of 16 MiB preparation bytes, 1 Mi UTF-16 metadata characters, 16 Mi work units, 1024 members, 65536 tuples and 131072 cells; the admitted native view is narrower than those DTO ceilings

These limits cover admitted library preparation and selected-result cloning, while provider temporary allocations, timeouts and external access remain caller responsibilities

Persistence and native model revisions

Retained transitional OOXML saves an owned snapshot with a unique relationship from its actual cache-definition part and an explicit content type, alongside the exact model digest and native layout binding

Normal library reopen grants cached query access only after strict snapshot schema, namespace, identity, source ownership and model-byte checks; unknown or stale snapshots remain raw transport without semantic query qualification

Actual Excel SaveAs can retain the snapshot while rewriting the model body, even when server results remain equivalent; that new artifact digest invalidates the old byte-bound snapshot until another explicit qualified refresh

Strict OOXML, XLSB and discard-unsupported-parts output do not inherit this snapshot profile

Native item projection and public persistence

Version 2.384.389 resolves each ordinary native row or column item index through the corresponding Pivot field's item list before looking up its raw shared-item member

Represented data items may be reordered without changing the requested member identities; an omitted x/@v has its specified zero default, while explicitly empty, negative or out-of-range ordinary indices are refused

Every requested member, including an unused extra member, must have a valid source projection before the provider is called; duplicate raw mappings and incomplete, foreign or inconsistent axis owners are refused without publishing a new model or snapshot

The row and column hierarchies must uniquely partition the represented source, and the final column measure axis must agree with its stored data-item identities

The original two-hierarchy, two-measure, nine-tuple native profile retains all of its strict admission checks and also runs the common layout decoder, comparing the eighteen resulting coordinates in the production path

Actual public qualification covers RefreshOlapPivotCache, detached QueryOlapCells, eighteen-cell MaterializeOlapPivot, snapshot save, source release, normal reopen, another materialization and stream reopen

The untouched historical native input and a separately disclosed semantically equivalent item-order derivative both complete that lifecycle, preserving provider-authoritative nonadditive values and the original view and connection parts

Final Win64 qualification passes 272 focused checks and 1057 independent checks; eight complete candidate-to-final output packages retain all 248 named entries without exceptions

This increment adds no native application execution and does not qualify every hierarchy/measure combination, active subtotal/filter item type, multiple-cache dependency graph or relational-copy refresh lifecycle

Multiple owned cache persistence and legacy migration

Version 2.384.392 preserves the qualified two-cache, two-worksheet-view OLAP lifecycle over the same retained embedded model, including independent provider refresh, eighteen-cell query and materialization for each owner, save, source release, normal or stream reopen and another explicit refresh

Published in-memory snapshots reserve their own package part names before the first save, while each cache definition keeps its own local relationship identity

The unique validated internal workbook model relationship uses its semantic owner, relationship type, normalized target and mode for source identity, so ordinary writer renumbering does not invalidate an otherwise identical model

Model bytes, digest, content type, unique incoming relationship and dependency checks remain mandatory, and other relationship identities retain their exact checks

Existing valid snapshots may match the exact former binding computed from their current actual graph during restore; the complete request and layout must still validate before publication, and the restored owner then uses the current canonical binding

Stale snapshots, changed model bytes, source-hash tampering and model aliases remain unqualified; changing one model revision makes another cache unavailable until its caller explicitly refreshes that cache

Already detectable stale owned snapshots are refused before ordinary OOXML output creates a ZIP on the caller stream, preserving the qualified stream bytes and cursor or existing file destination and allowing a healthy refresh retry

This early refusal does not promise rollback after arbitrary IO failure or add a general transactional save contract

Final complete-source qualification passes 427 focused checks and 507 independent checks; five complete candidate/final output packages retain all 173 named entries without exceptions

Original and reordered snapshots from version 2.384.389 restore without a provider and migrate through source-free reopen; a separate 2.384.391 baseline control confirms that two scalar decimal reserialization changes are existing behavior within the original native coordinate tolerance

The two-cache fixture is a fully disclosed offline derivative of a genuine native source, with unchanged retained model and connection bytes; this increment adds no native multi-cache application execution or additional hierarchy, measure, dependent-view or multiple-model qualification

Remaining external and cube work

This finite profile adds no local cube expression engine, arbitrary cube transport, external endpoint authentication, new database drivers or new platform qualification

Additional model/cache/view dependencies, complete CUBE semantics, unclassified formula tokens, opaque dependency parts, broader server schemas and arbitrary layouts remain unfinished beyond the finite version 2.384.405 increment

See external relational provider refresh and embedded model metadata transport for the separate existing contracts

Version 2.384.405 increment

See the qualified expanded lifecycle and its remaining boundaries for the newer finite contract