Skip to content
SheetForge

Edit on the canvas

Create, link, re-aim and disconnect records directly on the record canvas. To open the canvas, see Open and close the canvas. For what the canvas draws and what each card shows, see The record canvas.

How canvas edits are staged

Every edit on this page is a staged edit, the same as an edit in the table. The Data Studio holds it until you reflect it to the source.

  • It shows in the Push to source modal, which opens when you press ↑ Send in the toolbar. Push modal describes the dialog.
  • It is one Ctrl+Z step.
  • The reflect writes it after the same pre-flight validation as a table edit, and the same re-import follows.

When canvas editing is disabled

Four conditions disable canvas authoring exactly as they disable the table's:

  • Duplicate keys
  • Read-only sources
  • xlsx-backed tabs
  • A running import

Each one shows its reason in the menu line.

When editing is blocked describes how read-only sources, xlsx-backed tabs and a running import block the table.

How a gesture starts

A link gesture starts on a dot. Each port row on a card has a dot, and pressing that dot starts the gesture. Pressing anywhere else on the row does not, so nothing is grabbed by accident.

If you press and release without moving, it is still a click.

Feedback on a gesture

While a drag is live, everything unrelated dims and the ports that could accept it glow. The legal targets are visible rather than guessed.

Every completed gesture answers with a short toast that names the cell it wrote. When it matters, the toast also says that the link closed a cycle, or that the record is now shared with other places.

Create a record

Right-click an empty part of the canvas. No menu appears. A cascading picker opens at that spot.

Part of the pickerWhat it holds
Left paneThe sheets that the ports currently drawn aim at
Right paneSearch, create and the record list
Third pageAsks which port receives the record, when more than one could

A plugin can narrow or widen that sheet list. A sheet it declared that no port on screen accepts stays listed with its reason attached rather than disappearing. See Choose where records are created.

Note

The canvas does not create a record that is linked to nothing. Every record you create on the canvas is linked as it is created. To add a standalone row, press + Row below the last row of the table. See Add a row.

Where the view goes afterwards

The canvas moves to a record you create on it. The view routes to the new record the way double-clicking a card's header does. The new record stands in the middle as the terminus, with the link you just made beside it.

Forking is the exception. See Fork a shared record.

New records linked to nothing

A new record that is linked to nothing is not drawn on another record's canvas. A new row shows up on a canvas only while a staged connection ties it to something on screen. Otherwise a single unfinished row in the table would follow every canvas in the project around.

Nothing is lost by that:

  • Creating a record from the canvas immediately re-routes the view to it, so the row you just made is what you are looking at.
  • A row made in the table stays in the table.
  • A record created on the canvas that is still linked to nothing is named in the New records that are not linked dialog before the reflect drops it, whether it was ever drawn or not.

That dialog names only new rows. A record that is already in the sheet is never dropped.

Pick from a port

Click an empty port dot to link that column. You can also right-click a card's header and choose the Connect line for that column.

The picker opens at the cursor. It is the same searchable key list that a reference cell in the table uses. See Pick a reference.

  • Two header lines say what the slot accepts and which cell the pick will be written into.
  • Each row carries the key, its display name and how many places already point at it.
  • Keys already linked here are marked rather than silently duplicated.

Create the record while linking

If the record you want does not exist yet, the search box becomes a key box with the sheet's common prefix filled in.

Type a name and press Enter. The record is created and linked in one gesture that one Ctrl+Z undoes.

A name that is empty or already taken says so, and where, instead of creating anything.

Drag from an empty port

Drag from an empty port dot and the wire follows the cursor.

Drop onResult
A cardLinks the record
Empty canvasOpens the picker there

Drag from the output dot

Dragging from the output dot goes the other way. It looks for a place that uses this record.

Release over a card and the canvas finds which of that card's columns can take this record. One candidate links straight away. Several candidates ask which.

Dropping on empty canvas opens a cascading picker of the sheets that could take the record, including sheets not on screen.

Re-aim a link

You can pick up a link that is already plugged in. Dragging the dot of a filled single-reference port lifts the wire that is plugged in there, and the drop decides where the link goes.

Drop onResult
Another cardRe-aims the link
Another portMoves the link across two cells
Where it wasChanges nothing. Pressing Esc does the same
Empty canvasOpens that cell's picker at the cursor

Moving a link across two cells is still one undo step. Neither cell is written unless both plans stand.

The picker that opens on empty canvas offers disconnect as a line inside it. The drop does not disconnect on the spot, because a drop made by mistake must not erase a link.

Filled ports and list ports

  • Clicking a filled dot without moving selects that wire instead, so the click and the drag do not get in each other's way.
  • A filled scalar port is still a valid target for another drag. Dropping onto it means replace.
  • List ports have no single wire to lift, so they always start a new link.
  • Removing or reordering one element of a list is what the element's own ✕ / ▲▼ row is for.

Select a wire

A wire's body is for choosing, not for dragging. Click anywhere along a wire to select it and open the wire inspector. The clickable strip follows every segment of the wire's path.

Re-aiming is the port gesture described in Re-aim a link, so there is exactly one way to do each thing.

The wire inspector

A token is one entry of a list cell. The cell a;b;c holds three tokens, and a is one of them.

The wire inspector opens with the selected wire. It says that one wire is one token. It shows the cell the link is written in, and that cell's whole text split into its tokens, with a mark on the token this wire is.

When the plugin that contributes the edge describes it, one row edits the part of the token that is not the key. In attack:add:10, that part is add:10.

Editing that row rewrites the leftover only. Changing what the token points at is re-aiming, which is the port gesture.

From the inspector you can also open the record the wire points at, or cut the link.

Disconnect a link

Click a wire to select it, then press Delete. You can also right-click the wire and choose the one line in the menu, which starts with Disconnect.

The menu line says what will happen before you press it. Its text depends on the column the wire is written in. On a wire that a plugin added, the line reads Disconnect alone. Clearing is never refused.

ColumnMenu lineConsequence
Optional, with a defaultDisconnect (the column falls back to its default value)Falls back to that default. The wire goes, and the cell still has a valid value at runtime
Optional, with no defaultDisconnect (the column is optional, so the empty cell is fine)Becomes empty
RequiredDisconnect (the column is required, so the empty cell is reported in Problems)Becomes an empty cell that PROBLEMS reports
ListDisconnectLoses that one element

You can stage the empty required cell. The Problems panel reports it, and pre-flight stops the reflect until you fill it.

The table and the canvas share one validation. The canvas never runs a second one of its own.

Delete a record

Right-click a card's header and choose Delete this record. One dialog names everything that goes:

  • How many connections point at the record.
  • How many staged edits on that row will be dropped.

What the Delete key does

What the Delete key does depends on what is selected.

SelectionWhat Delete does
A wireUnlinks that wire
The terminus cardDeletes the record, through the same confirmation dialog as the menu item
Any other cardCuts every connection between that card and this screen at once
A card a plugin drew that is not a sheet rowNothing

The terminus is the card in the middle, the record the canvas is opened on. Any other card is not the subject of this canvas, so the key cuts its connections instead of deleting it.

A card a plugin drew that is not a sheet row has nothing to delete or unlink, so the key does nothing on it.

Cutting every connection to a card

Cutting every connection is one undo step. The plans are chained, so a list column loses all of its matching elements rather than all but the last.

A connection that the key could not cut says why rather than going quiet.

The key and the menu item

The right-click item Delete this record always means delete, whichever card it is on. The key is the shortcut whose meaning follows the selection. The menu line is the explicit one.

Fork a shared record

When a record is used in several places, the node inspector at the bottom right of the canvas offers Duplicate and split.

The fork clones every column into a new key, suggested from the sheet's prefix. It re-aims only this canvas's links at the copy. It is one undo step, and the record everyone else uses is untouched.

The view stays where it is. The point of a fork is that this terminus keeps its own copy.

What the canvas refuses

The canvas refuses two kinds of edit, and the menu says which.

Wires with no cell

A wire that does not say which cell it is written in cannot be edited.

SheetForge fills the cell in for the references it reads itself. A plugin that adds a wire by hand supplies the cell, or leaves it out.

A link can sit inside a custom type, such as the stat name inside a Modifier value.

Such a link is editable only if the plugin that contributes that edge also implements IAuthorableEdgeContributor. Otherwise the wire is display-only. See Make an edge editable.

Next steps