Columns
Grid → Columns, in the Screen Designer, is where you set each column's settings: how the column renders in the grid, how it appears in the dialog form, whether it filters, whether it's required, whether it's part of the row's primary key. Set each column once — both surfaces (grid and dialog) use the same configuration.
The columns at a glance
The list shows one line per column with its marks — key, filter, its kind of field, read only…; a click on a line opens its settings beside the list, in six tabs. Each field carries one short sentence of help; more opens the longer explanation.
| Tab | Holds |
|---|---|
| General | Column, Dictionary item, Key, Sensitive data, Related table (the related one-to-one table the column is written to). |
| Display | Label, Hidden, Format, Alignment, Width, Wrap long text, Parameters of the service in, On a phone, Width in the form, Link that runs. |
| Filter | Filter, Period shown at first, Narrowed by, Shown only when. |
| Rules | Kind of field, the field that kind needs, Another kind when — and, for a list read from a table, Code only, Values given to the list, Fills other fields. |
| Edit | Required, Required only when, Read only, Read only when, Read only when adding, Read only when changing, Align when saving, Align as the item in. |
| Defaults | Default value, Forced value when, Saved only when. |
A list setting (a condition, a cascading filter) opens in the same panel; the breadcrumb at the top leads back to the column.
Field by field
Every column carries the same settings. They are described below by purpose.
Identity
| Field | Notes |
|---|---|
| Column | The result column these settings apply to. Case-insensitive match against the read query's columns. Normalised to UPPERCASE on save. |
| Dictionary item | The dictionary entry that gives the column its label, format and list. (default) uses the column's name as the key. |
| Sensitive data | Whether the column holds sensitive data, for the AI assistant: left out of what the assistant is given when the installation hides sensitive data. Three choices: (default) follows the column's dictionary entry, yes flags the column, no exempts it even when its entry is flagged. See Sensitive data. |
The dictionary is Liberty's shared vocabulary — one entry defines a field's label, format, kind of field and list once; every screen that has a column with that name inherits it. See Concepts → Dictionary.
Display in the grid
| Field | Notes |
|---|---|
| Label | The title of the grid header and the label of the form field. Falls back to the dictionary's label, then to the column name. |
| Hidden | The column is hidden at first. The operator can show it from the grid's Columns menu. |
| Wrap long text | Long text wraps over several lines in the grid instead of being cut. |
| Width | Fixed column width in pixels. Blank fits the content. |
| Alignment | Left, right or centred. Blank follows the kind of value (numbers right, text left). |
| Format | How to render the value — date, number, yes / no, currency… Overrides the dictionary format. Drives both the grid cell and the form field. |
| Long Text, Name = value list | Two formats worth knowing. Long Text is typed in a multi-line box, in the record form and in the grid's edit mode, and keeps its line breaks. Name = value list shows a text of name = value lines as rows of fields in the record form (add, remove, As text / As fields); with Parameters of the service in — the column of the screen that names an endpoint — it becomes that endpoint's own form, one labelled field per parameter. |
| On a phone | Where the column goes on a card, when the grid is a list of cards: title puts it in the card's heading, show always gives it a line, hide never shows it. Blank: the grid decides. See Phone and tablet. |
Kind of field
Kind of field (Rules tab) says what the field is, in plain words, with its code beside it. (default) uses the dictionary's — the line under the field says which (What the dictionary says for this item: ENUM (PERIOD_STATUS)).
| Kind of field | Code | In the form | The field it needs |
|---|---|---|---|
| A yes / no box | BOOLEAN | A check box. | Value that means yes (Y, 1, true…), and Value for no. |
| A fixed list of values | ENUM | A dropdown of the list's values. | List of values — an enum of the dictionary. |
| A list read from a table | LOOKUP | A searchable list of the table's rows. | List from a table — a lookup of the dictionary, or a new one made from here: see below. |
| A number given automatically | SEQUENCE | Filled by the server on insert. | Numbering rule — a sequence of the dictionary. |
| The signed-in user | LOGIN | Filled with the user's name. | — |
| Today's date | SYSDATE | Filled with today's date. | — |
| A password (hidden, stored encrypted) | PASSWORD | Encrypted on write. | — |
| A database of this installation | POOL | A dropdown of the pools. | Only the databases of — blank offers every pool. |
| Free text; left empty, it takes its default value | DEFAULT | Free text. | — (the Default value of the Defaults tab). |
| Free text, whatever the dictionary says | DISABLED | Free text: cancels the kind the dictionary gives, for this screen. | — |
Only the field the chosen kind needs is shown, under the name of what it is for that kind. The effect of each kind on writes is described in Dictionary → Kinds of field.
A list read from a table adds three settings:
| Field | Notes |
|---|---|
| Code only | Shows the code alone in the grid, without its description. |
| Values given to the list | Values of the record that narrow the list's query — for instance the application of the row, to offer only that application's roles. See Parameter binding. |
| Fills other fields | When a line is picked, copies columns of that line into other fields of the record. |
Another kind when gives the field another kind — another list, another enum, a yes / no box — while another column has a given value. See Form conditions.
A list read from a table, in one step
When the list does not exist yet, New list from a table…, under List from a table, makes it without leaving the column. The New lookup window asks for:
| Field | Notes |
|---|---|
| Table | A table of the screen's database. |
| Value column | The code stored on the row. |
| Label column | The description shown to the user. |
| Optional WHERE clause | Written without the keyword. |
| Query name, Id, Description | Filled from the table; they can be changed. |
| Generated SQL — editable | The query, as it will be saved. |
Save adds the query to the application's list queries and the list to its dictionary — two new objects, nothing existing is changed —, reloads the configuration and picks the new list in the column.
Edit
| Field | Notes |
|---|---|
| Required | The field is marked with an asterisk and Save stays blocked while it is empty. |
| Read only | The operator sees the value but cannot change it. |
| Read only when adding / Read only when changing | Read only only when a record is added, or only once it exists — the second one for keys that must not change. |
| Required only when / Read only when | Required or read only only while conditions on other fields hold. A required field blocks Save only while it is visible. |
| Align when saving | How the written value is padded, for codes stored right-aligned. Blank does as the dictionary says. |
| Align as the item in | The column naming the dictionary item whose alignment and width this value follows. |
Defaults
| Field | Notes |
|---|---|
| Default value | The value a new record starts with. |
| Forced value when | A value set (and locked, unless Locked is unticked) while another column has a given value. |
| Saved only when | The column is saved only while the condition holds; otherwise it is saved empty. |
Key
| Field | Notes |
|---|---|
| Key | This column identifies the record, alone or with the other key columns. Drives: – Excel-import update-vs-insert matching. – In add mode, a key column shows a plain input instead of its list (a new key is typed, not picked). – The _put query's :NAME_ORIGINAL binding (the CRUD Wizard's convention). |
A key is not locked automatically when a record is edited: tick Read only when changing (Edit tab) on the key columns that must not change once the record exists. Mark every column that uniquely identifies a record. Multi-column keys are supported — tick Key on each. When the screen's Key columns is empty (the usual case), the columns marked Key are used.
Filtering
| Field | Notes |
|---|---|
| Filter | The column appears in the filters above the grid. The user picks a value to narrow the grid; on a column with a fixed list of values, several values at once, and a code typed beyond the list is accepted. A list read from a table keeps a single choice. A date column (date, datetime, timestamp format, or a date type in the database) filters by a period. |
| Period shown at first | On a date column with Filter, the period the screen opens on: today, yesterday, last 7 or 30 days, this or last month, this quarter, this or last year, last 12 months. Blank or all: no period, every row. The screen's first automatic run already applies it. |
| Narrowed by | Cascading filter — narrows this column's choices with another filter's value: Filter (the other filter) and Matched on (the column of this list compared with that filter's value). |
| Shown only when | In the grid, hides the column when a filter is set to a value outside the condition; in the form, shows the field only while the form's values match. |
The conditions are described on Form conditions, with examples on Conditional fields.
A typical column
For a STATUS column on a customers screen, the settings usually are:
| Field | Value |
|---|---|
| Column | STATUS |
| Dictionary item | (default) — uses STATUS as the key |
| Label, Format | blank — inherited from the dictionary |
| Kind of field | A fixed list of values |
| List of values | STATUS_CODES (an enum of the dictionary) |
| Default value | OPEN |
| Required | ✓ |
| Filter | ✓ |
That renders a dropdown in the form (sourced from the STATUS_CODES enum), pre-fills new records with OPEN, requires a value, and adds a filter to the grid.
Inheriting from the dictionary
The default behaviour — when most fields are blank — is to inherit from the dictionary. The chain:
| Column setting | Blank → taken from |
|---|---|
| Label | the entry's label, then the column name |
| Format | the entry's format, then the type of the value |
| Kind of field and its list | the entry's kind of field and its list |
This means a column named USR_ID on a screen automatically reads its label, format, kind of field and list from the dictionary entry USR_ID (or the one picked in Dictionary item). The screen overrides only when this screen needs different behaviour from the rest.
The column list is therefore mostly empty for well-dictionary'd installs — entries only appear when there's something to override.
Filtering and cascading filters
When a column has Filter ticked, a chip for it appears in the grid's filter panel. The user picks a value, the grid re-runs the read query with that value bound to the matching :placeholder param. The query is responsible for accepting the bind.
A period on a date column
On a date column, the filter panel shows a period instead of a single date: the same picker as the dashboards, with its presets (Today, Yesterday, Last 7 days, Last 30 days, This month, Last month, This quarter, This year, Last year, Last 12 months, All dates) and a two-month calendar for a custom range. The run sends the two bounds as <COL>_from and <COL>_to, and the server bounds the column itself — the read query needs no placeholder for them. A period ending on a day keeps all of that day's rows, times included.
A drill or a link that passes a date to a date column opens the screen on that one day.
Cascading filters narrow one filter's options based on another. The classic case: a Role dropdown that shows only roles for the currently-picked Application:
| Field | Value on ROLE_ID |
|---|---|
| Kind of field | A list read from a table |
| List from a table | get_roles |
| Filter | ✓ |
| Narrowed by → Filter | APPS_ID (the parent filter) |
| Narrowed by → Matched on | APP_ID (the column of the list's query that matches the parent filter's value) |
When the user picks an application, the role lookup re-runs with the application id bound — the user only sees that application's roles.
Order of columns
The order of the column list = the display order in the grid. Columns the read query returns but that aren't listed here keep their discovery order and follow the hinted ones.
To reorder:
| Goal | Action |
|---|---|
| Move a column up / down. | Drag its row in the list (the drag handle is the left edge of the row). |
| Hide a column entirely. | Tick Hidden. The operator can still un-hide it from the grid's Columns menu. |
| Drop a column from both grid and dialog. | Remove it from the list (✕) AND make sure it's not on any dialog tab's fields. (Or alter the read query to not return it.) |
Common pitfalls
| Mistake | Symptom | Fix |
|---|---|---|
Dictionary item USR_ID but no dictionary entry named USR_ID. | Label and format fall back to the column name verbatim. | Add the dictionary entry, or set Label and Format on the column. |
| A list read from a table but List from a table blank. | The dropdown is empty. | Pick a list, or make one with New list from a table…. |
| Narrowed by set but Filter not ticked. | The cascade does nothing — the source filter never fires. | Tick Filter AND set Narrowed by. |
| Required on a column the read query doesn't return. | The dialog saves with NULL; if the DB has a NOT NULL constraint, the write fails. | Add the column to the read query, or untick Required. |
| Key on a non-unique column. | Excel import treats duplicate values as updates of the same row. | Verify the key columns genuinely identify a row uniquely. |
| Format currency but the value is in cents (integer). | The grid renders 1,234.00 for 123456. | Format expects the value in the unit you want displayed — divide by 100 in the query, or use a Python step before display. |
What's next
- Dialog builder — fields you've configured here become drag-droppable cards on the canvas.
- Conditional fields — make a column appear / be required / be locked only under specific form conditions.
- Concepts → Dictionary — the shared vocabulary that columns inherit from.