Workbook map and limits
The workbook map draws the project's workbooks and the references between them. This page also shows how the record canvas treats records from other workbooks, what the web app adds, and the limits of working with several workbooks.
What the map shows
| On the map | Carries |
|---|---|
| One node per workbook | Its tab count |
| One edge per referencing pair | The number of references, how many are broken, and how many enum columns are involved |
| Any cycle | A mark |
Imports inside a cycle run in the order of the settings assets' paths.
A line leaves the right edge of the referenced workbook and enters the left edge of the workbook that references it. So a referenced workbook stands to the left, the way a material stands to the left of its users on the record canvas. A line that passes between boxes keeps a gap from them.
Workbooks that no reference touches stand apart, in rows of their own below the others.
The layout is deterministic. The same project draws the same picture.
Where the map lives
By default, the map lives in the canvas area itself. A Record canvas · Workbook map switch above the table swaps between the two without leaving the window. The table is one click away the moment you want it back.
Getting Started shows the same map in small under the settings list. An Open in Data Studio button there lands on this view.
To put the map somewhere else, open ⚙ Settings in the Data Studio toolbar and set Workbook map to Sidebar section with Enlarge or Popover only. The default is In the canvas area.
In the sidebar
A standing section at the bottom of the sidebar keeps a running count of references and breakages in view.
An Enlarge button opens the same picture full size when you need to read it closely.
In a popover only
The map has no standing place at all. A Workbook map… item in the workbook menu opens it in a popover. The popover closes when you click away.
When the workbook list itself lives in the sidebar, a button beside the sidebar section opens the popover instead.
Records from other workbooks
On the record canvas, a record from another workbook is an ordinary card with a chip naming its workbook. Its values are read-only there. Double-click the card to open the record in its own workbook.
What the canvas does next depends on the Data Studio view.
| View | What the canvas does |
|---|---|
| One workbook at a time | Follows references one hop into other workbooks and stops |
| All active workbooks together | Asks before it opens a record of a workbook outside the active set |
The question in the all-together view is whether to add that workbook to the active set first.
Wiring one of your own records to a foreign record is allowed. The edge belongs to your record, and only your cell changes.
In the web app
The web app follows the same model with the same words. What the web app does lists the parts it shares with the Data Studio. This section adds the details that list leaves out.
Workbooks in a session
Each spreadsheet, uploaded xlsx file or pasted local sheet that you bring into a session is one workbook.
A source whose tab or enum names collide with a workbook already loaded is refused as a whole. The message is the same one the editor gives.
What matches the editor
With two or more workbooks, the toolbar has a button that pulls every active workbook and names how many there are, and Pull every workbook beside it. Switching workbooks shows the same notice about pending edits. A reference-only tab shows the same read-only banner and button.
The workbook map is drawn from the same layout code the editor uses. The canvas chips naming a foreign workbook come from the same code too. The map follows the same placement choice: the canvas area by default, or the sidebar or a popover.
The options dialog
The ⚙ button on the toolbar opens a Settings dialog. It is the same dialog that the Data Studio's ⚙ Settings opens, without the editor-only sections. It remembers the choices in the browser.
The dialog holds these choices:
- Which of the two views to use
- Where the workbook list, the other-workbooks tabs and the map appear
- How short names are built
- An Export scope, since the browser has Export but no Push
Send to Google
↑ Send in the web app's toolbar writes every source that has pending edits, one batch per spreadsheet. When part of it fails, the report is per source.
Credentials are remembered per source.
Recheck after a fetch
After a source is fetched, references into it from the other loaded sources are rechecked. A break is announced.
The break blocks the Export of the source that holds the broken reference. The block lasts until the reference is fixed and the source is fetched again.
What the browser remembers
Only the names of a source's tabs and enums are remembered between visits. Its contents live in the page's memory.
After a reload, a reference into a source you have not fetched again is a ReferenceTabUnverified warning until you fetch it.
Limits
The complete list is in Several workbooks in one project.
Joint import and recheck are editor paths
What. A joint import and the recheck after an import are editor paths. The browser validates against the sources it has loaded. It blocks the Export of whichever source holds the broken reference. It never generates code, and so it never runs a joint import.
Why. Both belong to the editor's import cycle, which crosses domain reloads.
A reflect across workbooks is not atomic
What. When a reflect spans workbooks and a slice fails, the workbooks written before it hold the new data and the later ones do not. A reference may be broken until the remaining slices are written.
The next import's recheck reports and blocks exactly that.
Workaround. Fix the cause and reflect again. When a slice fails lists what each slice is left holding.
Custom reflect targets have no completion signal
What. A plugin source provider's write-back reports no end. The next slice starts when the previous call returns.
Workaround. After the reflect, look for staged edits left behind. They mean the write-back did not finish.
A fresh clone cannot attribute some enums
What. Generated code committed with the project may use enums whose owning workbook the machine has never imported. Those enums are kept as compiled until an import can decide.
Workaround. Run one Pull every workbook. It records every owner.
The web app keeps contents in memory only
What. Reloading the page keeps the names, not the data.
Workaround. Fetch the source again before its references are checked.
An unreadable enum source is an error
What. An enum defined in a source that cannot be read is an error, not a warning. The import stops there rather than at the bake.
Why. A reference cell resolves to a key at runtime. An enum cell is baked to an integer, and the definition is needed to bake it.
Next steps
- Sources and workbooks
Every limit on sources and on several workbooks.
- SheetForge Web
The browser companion.
- The record canvas
Open the canvas and read what each card shows.
- References across workbooks
Validation, reflect and the recheck after an import.