Skip to main content

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​

▦Screens↻ Reload configConnector:crmnomajdenomasx1+ Add scopeSave↶ Discard+ Add screen⌕ Filter…▤customersCustomerscrm.customers_get · 2 tabs · 8 fields · 2 row-menu itemsDelete⧉ Clone✎ Rename⑃ Find dependencies⑂ Find usages▤dealsDealscrm.deals_get · 1 tab · 6 fieldsDelete⧉ Clone✎ Rename⑃ Find dependencies⑂ Find usages▤ordersOrderscrm.orders_get · 0 tabs · 0 fieldsDelete⧉ Clone✎ Rename⑃ Find dependencies⑂ Find usagesOne chip per applicationits screens load belowClick a cardopens the Screen DesignerWhat the screen holdsread query · tabs · fieldsReload configre-reads the filesAdd screenasks for its idUsages and dependenciesbefore a rename or a delete

Three regions:

RegionWhat it carries
HeaderThe page title and Reload config, which re-reads the configuration files.
Connector barOne 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 listOne 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.

Screen Designer · Customerscrm · customers✕ Cancel⤡WHAT IT ISCustomersDATAcustomers_get3 save query(ies)GRID6 column(s)3 filter(s) · 1 view(s)RECORD FORM2 tab(s)8 field(s)ACTIONS1 toolbar action(s)2 in the row menu · 1 on s…OUTPUTthe grid's own exportColumnsViewsSummary⠿CUSTOMER_IDCustomerfilterkey✕⠿NAMENamerequiredfilter✕⠿COUNTRYCountryfilter✕⠿STATUSStatusfilter✕⠿CREDIT_LIMITCredit limitsensitive✕⠿UPDATED_ATUpdated athidden✕+ Add a column≋NAMEGeneralDisplayFilterRulesEditDefaultsNAME ∗NAMEResult column this entry applies to (case-insensitive match).DD(default)▾Inherit label / format / rule from this dictionary entry.KEYdisabledSENSITIVE(default)▾Save✕ CancelSix stages, as a floweach card says what it holdsThe columns, as a listdrag ⠿ to reorder, ✕ to removeMarks worth seeingkey, filter, required, hidden…Add a columnfrom the read querySections of the stageColumns · Views · SummaryThe picked columnits settings, grouped in tabsSave this screen onlyCancel asks on unsaved changes
StageSectionsThe card saysCarries
What it isGeneralThe 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.
DataQueriesThe 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.
GridColumns · Views · SummaryThe number of columns, filters and views, a summary.The columns; the shared views of the grid; the grouping columns of the Summary view.
Record formDialogThe 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.
ActionsActions · Row menuThe 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.
OutputExportexport: 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:

GroupFields
IdentityId, Label, Description (each with its translations), Application of the data (blank = the screen's own)
ReadingRead (required), Load on opening, Rows read at most, Rows per page (blank = the installation's setting), Key columns
SavingSave a change, Add, Delete, Save through
Editing & displayColumns, 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 & summarySaved layouts (shared views), Summary view, Before / after view
Change packagesTrack changes, Tracked as, Steps after a transfer — see Change packages
AuditHistory table (e.g. AUD_USERS — mirrors writes with AUD_ACTION / AUD_USER / AUD_DATE)
FormRecord form (optional — the form on top of the table)
ActionsButtons (toolbar), Row menu (right-click), After adding / After a change / After deleting / After duplicating
Row clickA 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)
ExportExport 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 inBehaviour
read_query onlyRead-only grid. The user sees rows; no edit, no add.
read_query + editable = trueInline 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 + dialogGrid + dialog. The user adds/edits rows through the form. Requires the matching insert_query / update_query.
read_query + row_click_screenMaster/detail. Clicking a row opens a sibling screen's dialog narrowed to that row.
read_query + row_click_routeMaster/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 + treeviewTree 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​

GoalRead
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​