Screens — overview
A screen in Liberty is the page a user sees: a table of rows, optional filters, optional add/edit dialog, optional actions, optional row context menu. One screen = one <base>_get query + (optionally) <base>_put / <base>_post / <base>_delete for writes + a dialog form on top.
The page that manages screens is Liberty Next → Screens → Screens. This overview maps it; the next pages walk through each task.
The Screens page at a glance
Three regions:
| Region | What it carries |
|---|---|
| Header | The page title and Reload config, which re-reads the configuration files. |
| Connector bar | One chip per application that has screens; a click loads its screens below. + Add scope gives screens to a connector that has none. On the right, Add screen (asks for the new screen's name — Its name: — and makes its id from it, shown while it is typed), Discard and Save for the page-wide edits. Below, Filter… narrows the list. |
| Screen list | One card per screen: its id, its label, then its read query (<connector>.<query>) with the number of tabs, fields and row-menu items. Each card has Find usages, Find dependencies, Rename, Clone and Delete. A click on the card opens the Screen Designer. |
The Screen Designer
Clicking a card opens the Screen Designer in a near-fullscreen window. The title bar names the screen by its label, followed by its application and its id (Screen Designer · Customers crm · customers), and has the Restore / Maximize button and Cancel; the bottom bar has Cancel and Save — Save commits just this screen's edits and closes (a refused save keeps the designer open and lists what to correct above the stages, each line with Open — see A refused save) — in screens.toml, only that screen is rewritten, without its default values and in the file's key order, every other screen staying as it is; Cancel prompts on unsaved changes.
The designer reads like the screen: six stages drawn as a flow — What it is → Data → Grid → Record form → Actions → Output — and each card says what the screen holds there. A click on a card opens it; a stage with several sections shows them under the flow.
| Stage | Sections | The card says | Carries |
|---|---|---|---|
| What it is | General | The screen's label, read only. | Identity (label and description, each in the other languages too), connector override, audit table, row cap, key columns, behaviour flags (auto-load, editable, uploadable), grouping, treeview, default chart, row-click behaviour. |
| Data | Queries | The read query and the number of save queries — in orange when no read query is set, or when an editable screen has nothing to save through. | The read (required), update, insert and delete — queries of the connector, or API endpoints; Saves through for a screen read by SQL and saved by an API. |
| Grid | Columns · Views · Summary | The number of columns, filters and views, a summary. | The columns; the shared views of the grid; the grouping columns of the Summary view. |
| Record form | Dialog | The number of tabs and fields, or no record form. | The visual builder — Add a field / Dialog / Inspector — where fields are added to tabs. Optional: a screen without a record form still works as a read-only or grid-edit table. |
| Actions | Actions · Row menu | The toolbar actions, those of the row menu, those on save and load. | Dialog hooks (on_load / on_save / on_cancel), Toolbar buttons, Row hooks (on_insert / on_update / on_delete / on_duplicate), and the row's context menu. |
| Output | Export | export: N sheet(s), or the grid's own export. | The multi-sheet xlsx export — optional. |
The columns
Grid → Columns is a list with the picked column's settings beside it. Each line gives the column's name, its label — the screen's own, else the dictionary's — and what is worth seeing without opening it: key, filter, hidden, required, read only, sensitive, and its kind of field. Drag a line by its grip to reorder, Add a column, remove one with its cross; past six columns, a filter box narrows the list (dragging is off while it is filtered). Beside the list, the picked column's settings are grouped in six tabs — General, Display, Filter, Rules, Edit, Defaults — described on Columns; a condition or another kind of field opens in the same panel, with a breadcrumb back to the column.
The next pages of this section walk through each stage as a separate task.
What a screen carries
The settings of a screen, grouped by purpose, by the labels of the designer:
| Group | Fields |
|---|---|
| Identity | Id, Label, Description (each with its translations), Application of the data (blank = the screen's own) |
| Reading | Read (required), Load on opening, Rows read at most, Rows per page (blank = the installation's setting), Key columns |
| Saving | Save a change, Add, Delete, Save through |
| Editing & display | Columns, Related tables, Edit in the grid, Editable only when, Read only (a click on a row opens the dialog view only — no save, no record lock —, its detail tabs loading from the row), No new record, Import from a file, Grouped by, Tree view, Chart |
| Views & summary | Saved layouts (shared views), Summary view, Before / after view |
| Change packages | Track changes, Tracked as, Steps after a transfer — see Change packages |
| Audit | History table (e.g. AUD_USERS — mirrors writes with AUD_ACTION / AUD_USER / AUD_DATE) |
| Form | Record form (optional — the form on top of the table) |
| Actions | Buttons (toolbar), Row menu (right-click), After adding / After a change / After deleting / After duplicating |
| Row click | A click opens the form of + In the application + Values handed over (open a sibling screen as a dialog) OR A click opens the page (open a page of the application) |
| Export | Export to workbooks (one Excel file per group, one sheet per sub-group) |
Read-only mode
Tick Read only on a screen (a checkbox of the What it is stage) to make the whole view non-editable. It hides the dialog's Save, Delete and Duplicate, the grid's Add and Delete selected, inline cell editing, paste and Excel import — in the nested-table editors too. It is stronger than No new record (which only blocks inserts) and is the right setting for a reference or audit screen that should never be changed from the UI. Server-side permissions still apply on top, independently.
Screen kinds — by what's set
There's no kind discriminator; you get different screen shapes by which fields you fill in:
| Filled in | Behaviour |
|---|---|
read_query only | Read-only grid. The user sees rows; no edit, no add. |
read_query + editable = true | Inline grid editing — Bulk edit: cells edited in place, rows added, cloned, pasted or deleted, the grid's Save writing everything. Requires update_query or insert_query. |
read_query + dialog | Grid + dialog. The user adds/edits rows through the form. Requires the matching insert_query / update_query. |
read_query + row_click_screen | Master/detail. Clicking a row opens a sibling screen's dialog narrowed to that row. |
read_query + row_click_route | Master/page. Clicking a row navigates to a SPA route — escape hatch for hand-written React pages (live-streamed logs, multi-source merges). |
Any of the above + treeview | Tree view toggle in addition to the default Table / Chart toggles. Parent/child columns build a recursive node tree. |
The same screen can layer several: a screen with dialog AND row_click_route opens the route on click (route wins), and the dialog is reached only via the toolbar's + Add button.
Permissions — gated by the read query
The screen itself does not have its own permission string. A user can see a screen when they have the permission to run its read query:
sql:<connector>:<read_query>
So a screen customers on connector crm with read_query = customers_get is visible to anyone with sql:crm:customers_get. Granting sql:crm:* opens every query on the connector — and therefore every screen that uses it.
The same logic applies to writes: the dialog's Save and the grid's Save succeed only when the user has sql:<connector>:<update_query> / <insert_query> / <delete_query>. A user with read but no write permission sees the grid but no + Add button and gets a read-only dialog.
Save and reload
The Screens page's Save button writes the whole screens.toml (the [screens] table is replaced wholesale) and triggers a hot reload. The status banner reports which apps were touched.
The hot reload means no process restart — a new screen is callable immediately at /screen/<app>/<id>, and the menu picks it up if a menu entry points at it.
What you actually do — quick map
| Goal | Read |
|---|---|
Wire a fresh screen to a _get query and see the grid. | Create a screen from a query. |
| Configure columns — labels, formats, defaults, filtering. | Columns. |
| Build the add/edit dialog with the visual designer. | Dialog builder. |
| Make fields appear / be required / be locked under specific conditions. | Conditional fields. |
| Add toolbar buttons, row menus and lifecycle hooks. | Actions and lifecycle. |
| Embed a child-record form or a related-rows grid in a tab. | Nested tabs. |
What's next
- Create a screen from a query — start with a
_get, see the grid. - Concepts → Screens — the deep reference behind this page.