Live Data "add entry" action

Last modified by Pierre Jeanjean on 2026/06/02 16:17

Description

Requirements

  • For LiveTable source:
    • Adding an entry should create a new page
  • Ability to quickly add entries (keyboard-only process)

Alternatives

Page Creation

On clicking "Add entry":

  1. Ask for full page location
  2. Ask for page name and use configured space
  3. Ask for page name and assume current space
  4. Don't ask for anything, display (empty) page location in a required editable column (or option 1 if the LiveData does not have the doc.location column)
  5. Don't ask for anything, display (empty) page name in a required editable column and assume current space (or option 2 if the LiveData does not have the doc.title column)
  6. Don't ask for anything, assume current space and auto-generate page name

Display Update

For pagination, once a new entry has been added:

  1. Automatically move to the page that contains the new entry
  2. Display the new row in the current page
    1. Replace the previous last row
    2. Ignore page limits until refresh
  3. Do nothing, the new entry will only be displayed if the user is on the page that should display it

For filters, once a new entry has been added:

  1. Keep enforcing filters, consider the user knows what they are doing
  2. Display the new row even if it should be filtered out

Current State

Existing "Add entry" button

The current Live Data implementation already includes a "Add entry" button for the Table and Card layout. It is only displayed if the current source declares a "addEntry" action:

1776262787300-729.png1776262807875-171.png

Proposal

Sequence to quickly create rows:

  1. If the user has the necessary edit rights, the live data displays an "edit mode" checkbox. Once checked, the livedata is in edit mode and displays all available columns.
  2. The user clicks the "Add entry" button.
  3. If the Live Data displays the doc.title column, go to step 3 and make it editable. Otherwise, a popup opens, similar to AWM creation process, to input a page name. The input box is autofocused and can be validated with the return key.
    1776344796046-962.png
  4. Here, the new row appears and the first editable column is opened in edit mode and focused.
    1776344996138-277.png
  5. Hitting Tab should go to the next editable column, Shift+Tab to the previous one (if available) (or cycle through a list if the editor is a list, and switch columns on first and last element only)
    1776345170357-821.png
  6. Once done with the current line, multiple choices are available:
    • Hitting Tab would eventually cycle back to the Add Entry button, validating the row.
    • Pressing Return closes all opened editable fields, validating the row.
    • Pressing the validation button closes all opened editable fields, validating the row.
    • Pressing Ctrl+Return closes all opened editable fields, validating the row, and also creates a new row (go back to step 1).

LD parameter change:

  • Add a new sourceParameter newRowNamingStrategy, only support the value template so far.
  • Add a new sourceParameter newRowNamingTemplate, used to automatically name the pages corresponding to new rows.

 


Get Connected