Generate next negative

Allocates a negative-int sentinel for an int primary-key column. Use as the first RowAction ingredient (before Add row) when inserting into a linked Google Sheets table; the next sync swaps the sentinel for the RowNumber Sheets returns. Do not use on local tables – Sequential ID is the right choice there.

Ingredient Family: rowActionsIngredients

Outline Display: Allocate a fresh negative-int sentinel for {{columnName}} on {{parentTable}}.

Local scope

The parent slot binds these (look up the slot in the parent to see how):

  • $table – The table to act on

Names introduced within this component’s knobs:

  • parentTable – table chosen from the app’s schema (via parentTable knob)
  • tableId – key column of parentTable

Settings

Required

  • parentTable : table
    the linked Sheets table whose RowNumber column receives the sentinel

  • columnName : new column (type: type of tableId)
    The int primary-key column on the linked Sheets table (typically the RowNumber column).