HotXLS Docs

Ordinary ODS Pivot members

Source identity, visibility and NAME sorting

Version 2.384.408 extends the ordinary local multiple-measure ODS Pivot profile with explicit row members, ascending or descending NAME sorting, member visibility and retained leaf detail state

The source remains one text category column and 2..16 independent numeric measures, with their represented SUM, COUNT, AVERAGE, MIN or MAX functions, native two-row headers and independent grands

Each declared member binds to its actual source and cache item rather than its position in the XML list; hiding a member changes the visible rows and applicable grand values without removing its underlying source records

Unlisted current and subsequently refreshed members retain the observed visible and detail-visible defaults, including when another member is hidden

Detail-hidden state is retained on a leaf item; this finite profile does not qualify multi-level drill or collapse behavior

Independent captions and explicit current results

Member captions retain separate identity through the existing Caption and HasCaption state; NAME sorting follows the original member names, so A and B displayed as Zulu and Alpha remain in original-name order

Member display names use the observed http://openoffice.org/2009/table extension namespace, independently of standard member names, field captions and the repeat-item-labels namespace

After editing source data, call RefreshPivotCache; after changing members, NAME sorting or captions, call MaterializeNativePivotTable before saving the current result grid; use the explicit MaterializeOdsPivotTable route below for the qualified DATA-sorted OpenDocument profile

A pending caption over an old unchanged grid refuses checked export instead of being silently omitted; generic one-header materialization is not a substitute for the native-layout route

Normal Open automatically admits the complete represented definition; source release, repeated saving and ordinary reopening retain the typed owner and member projection

Row members sorted by a numeric measure

Version 2.384.450 extends the finite local multiple-measure profile with ascending or descending DATA sorting of ordinary row members by the selected aggregate measure

The represented layout retains one string row field, independent numeric measure fields, the existing source/cache/grid and caption checks, and the established finite numeric and format requirements; the actual representative uses Amount SUM and Units COUNT

Pivot.Fields[0].SortDataField selects an index in Pivot.DataFields, rather than an index in the source cache fields

Use the explicit OpenDocument materialization entry before ODS output

Pivot.Fields[0].SortType := xlpfstDescending;
Pivot.Fields[0].SortDataField := 0;
if Workbook.RefreshPivotCache(Pivot.CacheId) <> 1 then
  raise Exception.Create('Pivot source refresh failed');
if Workbook.MaterializeOdsPivotTable(Pivot) <> 1 then
  raise Exception.Create('OpenDocument Pivot materialization failed');
if Workbook.SaveAsODS('measure-sorted.ods') <> 1 then
  raise Exception.Create('OpenDocument Pivot output failed');

MaterializeOdsPivotTable supports the existing explicit AAdoptExisting decision and publishes the generated cells and their OpenDocument ownership together using the normal transaction

Excel and LibreOffice differ on equal-value secondary ordering in the observed descending profile; the existing MaterializeNativePivotTable keeps Excel behavior, while the OpenDocument entry keeps the qualified LibreOffice name tie-break

An OpenDocument-prepared result must be regenerated with MaterializeNativePivotTable before Excel-family output; changing only the requested file format does not establish equivalent result ownership

Conversely, use MaterializeOdsPivotTable before exporting this DATA-sorted profile from an Excel-prepared result

Qualified ODS import resolves the sort token to one actual measure by source field name or display caption; ambiguous matches, invalid indexes and stale source/cache/result state refuse qualification instead of selecting an arbitrary field

Source-free ODS reopening retains the represented sort direction and actual measure identity without implicit source refresh or rematerialization

Other row hierarchies, filters, grouping, locale-specific comparison rules, unrepresented sources and broader native layout combinations retain their separate acceptance boundaries

Row and column member display captions

The local single-row column-path profile supports row-axis and column-axis TXLSPivotItem.Caption, HasCaption and ClearCaption; assigning a caption changes the displayed label while clearing it restores the source member name

Within this OpenDocument axis-caption profile, captions must be nonempty valid XML 1.0 text containing no more than 32767 UTF-16 code units; TAB (U+0009), LF (U+000A) and CR (U+000D) are permitted, and literal Office escape-like text such as _x000D_ remains literal display text

Member identity remains bound to its source and cache item, so two different members may share one display caption without being merged; NAME sorting continues to use the original member names rather than the displayed labels

After source edits, call RefreshPivotCache(Pivot.CacheId) and then MaterializeOdsPivotTable(Pivot); caption edits or clearing require OpenDocument rematerialization of the current cache before checked ODS saving

For a previously admitted native-compressed column layout, rematerialization preserves its compact header policy while deriving the actual new depth from fresh real column tuples. Editing, clearing and replacing captions retain complete metadata and ordinary cells outside the physical result; stale source/cache values or a changed old result cell refuse before replacement, and correcting the source or old cell permits retry

The retained definition and its ordered source/cache members must agree with the old ownership ledger and actual worksheet cells before a caption transition can replace them; row-caption transitions check the complete old frame and sparse headers, so matching a newly edited label alone does not grant overwrite permission

Native refresh may remove unused physical header levels when every visible column path is collapsed above the final metadata field. Readback derives the rendered depth from the complete visible source paths and verifies the entire compact result, while preserving every metadata field and hidden descendant; a shorter location or a blank cell alone does not authorize compression

A LibreOffice 26.8.2.2 observation covers a three-column-field, single-measure case whose refresh reduces the result from seven rows to five. Typed return retains all three column fields, edited and cleared row captions, source records and values through saving with the input file unavailable and reopening. Ordinary cells outside the compact frame remain outside its ownership

Competing Pivot collision checks can use the compact physical header boundary only after proving unique live workbook membership, current source/cache values, visible paths, the complete result grid and its ownership ledger. A changed source or newly expanded path refuses before replacing cells; restoring the original source permits retry. Qualified ordinary row-axis and column-axis views may coexist in one collection and retain typed ownership through whole-worksheet copying, saving, reopening and repeated output after releasing the input stream

Cross-workbook qualification covers a compact column-layout Pivot beside an ordinary row-axis Pivot, including an empty target and target worksheets whose names already match the source dependencies. The copied dependency sheets receive distinct names and each cache binds to its actual copied source, while the existing target sheets remain intact. The copied workbook saves after the source workbook is released, with private input files unavailable, and retains typed views through repeated reopening; expanded source paths inconsistent with the old compact frame refuse atomically before the destination graph changes

Unknown active attributes, unsupported field or member children, duplicate or changed source identities, stale owned values and exhausted shared preparation budgets refuse before result publication or destination replacement

Native format conversion is a separate semantic boundary. One observed LibreOffice 26.8.2.2 ODS-to-XLSX conversion retained cached custom labels and short column tuples in the worksheet, but omitted the corresponding member captions and collapsed-detail flags from the Pivot definitions, shared one cache between two views, and expanded the first displayed frame when reopened. Such cached cells do not prove that the stored Pivot model still represents the same layout; checked ODS conversion may refuse that package, and Excel output from an OpenDocument-owned result continues to require explicit Excel rematerialization

Source release, repeated saving, reopening and worksheet copying retain these captions only within their existing qualified source/cache and workbook-context domains; copying does not authorize unrelated cells or replace explicit refresh and safe materialization

Finite LibreOffice 26.2.5.2 observations cover three actual product ODS inputs through open, explicit refresh, save and reopen, including equal captions on distinct members with SUM and COUNT occurrences, an edited caption, a cleared caption and a real source-value change followed by recalculation; neutral library return retains the represented typed identities and custom captions

The separate multiple-row-field profile supports its own row-member captions; general native-local operations, OLAP, arbitrary native-generated grand labels and broader application or layout combinations remain outside these profiles

Actual native lifecycle and readback

Final-source qualification passes 1003 public checks and 2319 independent observations over 55 packages and 26 preserved output sentinels

A separate LibreOffice 26.2.5.2 consumer exercises collapsed-leaf, sparse hidden/new-member and independent member-caption outputs from the actual final library source, with six explicit local refreshes and six saved packages

The consumer passes 195 semantic and 136 process/protocol checks, with the document-serving process held through normal shutdown; a separate 42-check public library readback consumes the three native-reopened outputs

The earlier alias input is disclosed-derived and subsequently refreshed and saved by the native application; it is not claimed as a fresh native authoring specimen

These native observations cover the represented two-measure SUM/COUNT examples and do not qualify every measure count, numeric dataset, locale collation or application

Refusal, resources and remaining work

All imported views qualify before typed publication; unknown active metadata, ambiguous or duplicate member identities, wrong namespaces, conflicting display labels and unsupported sorting retain the whole raw collection

Export requires current source/cache records, per-view member projection, captions and captured grids; refusal precedes destination replacement

The finite collection retains its 16-view, 65536-record and 262144-XML-unit bounds, with a 4096-member/cache-domain bound for expanded export and checked retained-member and temporary-work budgets

Every later view includes already retained member arrays and strings in its collection allowance; two views cannot each consume the full allowance independently

Arbitrary grouping, subtotals, member types, measure sorting beyond the finite DATA profile above, multi-level drill, row data axes beyond the separately qualified ordinary inner/outer measure profile, advanced interactive graphs and broader numeric/style/provider semantics remain unfinished

See multiple-measure layout, ordinary aggregate constraints and native local refresh and adoption

Ordinary row data axes

See the qualified inner/outer measure profile for source identity, virtual axis position, independent row-grand captions, current results and format boundaries