Skip to content

Add workbook data connections to the model#57

Draft
gthb wants to merge 2 commits into
jsfkit:mainfrom
gthb:pivot-workbook-connections
Draft

Add workbook data connections to the model#57
gthb wants to merge 2 commits into
jsfkit:mainfrom
gthb:pivot-workbook-connections

Conversation

@gthb

@gthb gthb commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

A pivot cache with sourceType: 'external' has a connectionId referring to a workbook data connection in xl/connections.xml. But JSF has no place for the connection itself, so there's nothing for the cache's connectionId to refer to.

So add a Connection type (the <connection> core attributes plus <dbPr> database properties) and Workbook.connections. Covers database/file connections; leave OLAP/web/text source children for later (a connection without one still round-trips its attributes).

gthb added 2 commits July 7, 2026 14:18
A pivot cache with `sourceType: 'external'` carries a `connectionId` referring to
a workbook data connection in `xl/connections.xml`, but the model had no place
for the connection itself — so a converter round-tripping such a workbook drops
the connection and leaves the cache's `connectionId` dangling.

Add a `Connection` type (the `<connection>` core attributes plus `<dbPr>`
database properties) and `Workbook.connections`. Covers database/file
connections; other source kinds (OLAP, web, text) are left for later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant