Rows added from the app

Top up a catalog from your phone without opening the editor: add, edit, delete.

The “Rows from the app” line in the table header, and its options.
The “Rows from the app” line in the table header, and its options.

Tables are normally filled in the editor. But a new event is easier to add from a phone while standing in the venue. That is what the Add row, Update row, Delete row and Fill form from row actions are for.

  1. Drop a form and set its “Table to save into” right away — every field inside then offers that table’s columns in “Field name”, so nothing has to be matched by hand.
  2. Give the button the Add row action and pick the form. The table can be left empty there — the form’s one is used; a table chosen in the action wins, because the action is what writes the row.
  3. Hide the “+” button behind a condition — show it only when {{user.id}} is yours, say.

The Add a record to a table action has two more fields. Tell me about the record makes the bot message you about every new record, so a seller hears about a booking or an order without opening the Data panel. It is off by default, because a visitor’s cart is records too. Remember the record as puts the record just created into a variable along with its id, so the next screen opens exactly that record: a ticket with a QR code, an order number, a booking confirmation.

The form’s Record to edit field: the edit screen fills itself.
The form’s Record to edit field: the edit screen fills itself.

An edit screen takes three steps:

  1. On the button that leads to editing, make Remember the first action: a variable such as selectedEvent, and “Whole row”. Inside a list card remember {{item}}; if the event details screen was opened from a card that has Remember, the record is already in the variable and needn’t be remembered again. Without this the edit screen has nothing to show — the list that was tapped isn’t on it.
  2. Put one form on the edit screen and set its Record to edit to {{selectedEvent}}: when the screen opens the fields fill in by themselves, and no separate Fill form from row is needed on the button.
  3. Give the Save button Update row with the same record, {{selectedEvent}}, and this form.

Such rows are labelled in the table: From the app — created there; Changed in the app — the in-app edit overrides what you typed here, and a button next to it restores your version; Hidden in the app — a document row that was removed in the app; it stays in the table and can be shown again.

Read next