HotXLS Docs

Ordinary ODS Pivot members

Source identity, visibility and NAME sorting

Version 2.384.408 widens 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 stays 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 instead of 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 keep the observed visible and detail-visible defaults, including when another member is hidden

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

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 stay in original-name order

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

After editing source data, call RefreshPivotCache; after changing members, 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 materialisation is not a substitute for the native-layout route

Normal Open automatically admits the complete represented definition; source release, repeated saving and ordinary reopening keep 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 DATA sorting of ordinary row members, in either direction, by the selected aggregate measure

The represented layout keeps one string row field and independent numeric measure fields alongside the existing source/cache/grid and caption checks plus the established finite numeric and format requirements; Amount SUM and Units COUNT serve as the actual representative

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

Use the explicit OpenDocument materialisation entry ahead of 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 honours the existing explicit AAdoptExisting decision and publishes the generated cells together with their OpenDocument ownership through the normal transaction

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

An OpenDocument-prepared result must be regenerated with MaterializeNativePivotTable ahead of Excel-family output; altering 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 a single actual measure by source field name or display caption; ambiguous matches, bad indexes and stale source/cache/result state decline qualification rather than selecting an arbitrary field

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

Other row hierarchies, filters, grouping, locale-specific comparison rules, sources that are not represented and broader native layout combinations keep 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; a caption assignment replaces the displayed label, and clearing the caption brings back the source member name

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

A member's identity stays tied to its source and cache item, so two different members can share one display caption without being merged; NAME sorting still works from the original member names, not the displayed labels

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

For a previously admitted native-compressed column layout, rematerialisation 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

Before a caption transition may replace them, the retained definition and its ordered source/cache members have to agree with the old ownership ledger and the actual worksheet cells; row-caption transitions inspect the complete old frame and the sparse headers, so a matching newly edited label on its own does not give permission to overwrite

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 authorise compression

An observation on LibreOffice 26.8.2.2 covers a three-column-field, single-measure case where a refresh cuts the result from seven rows to five. Typed return keeps all three column fields, the edited and cleared row captions, source records and values across a save made while the input file is unavailable and a later reopen. Ordinary cells beyond the compact frame stay outside its ownership

A competing Pivot collision check may rely on the compact physical header boundary only once it has proved 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 is refused before any cell is replaced, while restoring the original source allows a retry. Qualified ordinary row-axis and column-axis views can coexist in one collection and keep typed ownership through whole-worksheet copying, saving, reopening and repeated output after the input stream is released

The cross-workbook qualification places a compact column-layout Pivot next to an ordinary row-axis Pivot, including an empty target and target worksheets already named after the source dependencies. Copied dependency sheets are given distinct names and every cache binds to its actual copied source, while existing target sheets stay intact. The copied workbook saves once the source workbook has been released, with the private input files unavailable, and keeps typed views through repeated reopening; expanded source paths that conflict with the old compact frame are refused atomically before the destination graph alters

Unknown active attributes, field or member children that are unsupported, duplicate or altered source identities, stale owned values and exhausted shared preparation budgets are all refused before a result is published or a destination replaced

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 rematerialisation

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 authorise unrelated cells or replace explicit refresh and safe materialisation

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

The separate multiple-row-field profile handles row-member captions of its own; general native-local operations, OLAP, arbitrarily generated native grand labels and wider application or layout combinations stay outside these profiles

Actual native lifecycle and readback

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

A separate LibreOffice 26.2.5.2 consumer works through 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 until 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 put forward as a fresh native authoring specimen

These native observations cover the represented two-measure SUM/COUNT examples and qualify neither every measure count, numeric dataset, locale collation nor 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 keep the whole raw collection

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

The finite collection keeps 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 counts 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, multi-level drill, row data axes beyond the separately qualified ordinary inner/outer measure profile, advanced interactive graphs and broader numeric/style/provider semantics stay 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 covering source identity, virtual axis position, independent row-grand captions, current results and format boundaries