Item types
A menu item is either a folder (no type) or a leaf that opens something. The leaf's type decides what that something is and what the target / connector fields mean.
Seven leaf kinds:
type | Opens | target is | connector |
|---|---|---|---|
screen | A designed screen. | The screen's id, picked from the application's screens. | Usually blank — the screen's own connector runs it. |
query | The same grid view, picked from the raw queries. | A SELECT query name. | The connector that owns the query. Blank = the app's own connector. |
endpoint | The HttpRunner — fires one API connector endpoint. | An endpoint name. | The API connector. Blank = the app's. |
dashboard | A dashboard (charts + KPIs). | <app>.<id> of the dashboard. | Must NOT be set (the app is in the target). |
page | A registered frontend route — a custom feature area like /nomaflow. | The route path. | Must NOT be set. |
url | An external address, in a new browser tab. | The address: https://…, a path of this server, or #URL.NAME#/… — see External addresses. | Must NOT be set. |
job | The page of a Nomaflow job: its files and parameters, Run, the live log, the previous runs. | The job id. | Must NOT be set. |
This page walks each in detail with concrete examples.
At a glance
screen and query — open a screen
The most common leaf kinds. They open a grid, but not from the same target:
screenopens a designed screen. The target is the screen's id (customers), within the menu's application: the screen opens with its own columns, filters, views and record form — even when another screen reads the same query. The Inspector's Target list offers the application's screens, each with its label and id.queryopens a query's rows. The target is the query name (customers_get): the list offers each table's read query (<table>_get, labelled with the table) and the standalone queries. When a screen is designed on that query, its column settings apply; otherwise the rows show in a plain grid.
Fields
| Field | Notes |
|---|---|
type | screen or query. |
target | screen: the screen id — customers, security_users. query: the query name — customers_get. The dropdown lists the valid targets for the chosen type and connector. |
connector | query: the connector that owns the query; blank = the menu's app (most common case). screen: usually blank — the screen's own connector runs its queries. |
params (Fixed values, Advanced tab) | Optional. Fixed values for the filters of the screen or the :placeholder parameters of the query — e.g. a My open tickets leaf with OWNER = #LOGIN_USER# and STATUS = OPEN. The names are picked among the screen's filters or the query's parameters. |
Who sees the leaf
A screen leaf shows to whoever may run the screen's read query on the screen's connector (sql:<connector>:<read query>); a query leaf, to whoever may run the query itself. The entry's roles narrow it further — see Permissions and roles.
Example
[[menus.crm.items]]
id = "pipeline.customers"
parent = "pipeline"
label = "Customers"
l.fr = "Clients"
icon = "users"
type = "screen"
target = "customers"
Opens the screen customers of the crm application.
[[menus.crm.items]]
id = "my_open_tickets"
label = "My open tickets"
icon = "ticket"
type = "query"
target = "tickets_get"
params = { OWNER = "#LOGIN_USER#", STATUS = "OPEN" }
Opens the rows of tickets_get, with the screen designed on that query, bound to the user's own open tickets. The #LOGIN_USER# token resolves from the JWT — see Parameter binding.
endpoint — fire an API endpoint
The second leaf kind: open the HttpRunner with one API connector endpoint pre-selected. The user gets a form prompting for the endpoint's parameters and a Run button.
Fields
| Field | Notes |
|---|---|
type | endpoint. |
target | An endpoint name declared on the API connector. The dropdown lists every endpoint on the picked connector. |
connector | The API connector. Blank = the menu's app (works when the app is itself an API connector). |
params (Fixed values) | Optional. Pre-fill the form fields. |
When to use
- Custom integrations the user triggers manually (sync from an external system, refresh a cache).
- Operations that aren't naturally a screen — webhook tests, ad-hoc POST.
- Tools and diagnostic endpoints.
Example
[[menus.nomaubl.items]]
id = "ppf.sync_directory"
parent = "ppf"
label = "Sync PPF directory"
icon = "refresh-cw"
type = "endpoint"
connector = "ppf"
target = "sync_directory"
Opens the HttpRunner for the ppf API connector's sync_directory endpoint. The user fills any required form fields and clicks Run.
dashboard — open a dashboard
A dashboard is a page of charts and KPIs declared in [dashboards.*]. The menu item points at the dashboard's id.
Fields
| Field | Notes |
|---|---|
type | dashboard. |
target | <app>.<id> — the dashboard [dashboards.<app>.<id>], for example crm.pipeline. The dropdown lists every dashboard. |
connector | Must not be set — the app is part of the target; the validator rejects a stray connector. |
params (Fixed values) | Optional. Pre-fill the dashboard's filters. |
When to use
- Executive overviews (revenue by region, pipeline by stage).
- Operational dashboards (jobs status, system health).
- Anything that's a layout of charts rather than a single table.
Example
[[menus.crm.items]]
id = "pipeline.deals_dashboard"
parent = "pipeline"
label = "Deals dashboard"
icon = "chart-bar"
type = "dashboard"
target = "crm.deals_overview"
Opens the dashboard deals_overview of the crm app — note no connector field.
page — open a registered frontend route
The escape hatch. A page leaf navigates to a hand-written React route — a custom feature area the framework doesn't compose from queries / screens / dashboards. The classic example is the Nomaflow product, which has its own routes (/nomaflow, /nomaflow/jobs/:id, /nomaflow/runs/:runId) for the scheduler UI.
Fields
| Field | Notes |
|---|---|
type | page. |
target | The route path — /nomaflow, /runs/dashboard, etc. Routes must be registered in the frontend (the menu doesn't create them; it just points at them). |
| Tests pages | /liberty/tests and /liberty/test-results put the Tests and Test results pages in an application's menu; the entries show to the holders of tests:view. |
connector | Must not be set. The target is a route, not a connector resource. |
params (Fixed values) | Optional. The runtime appends them as query-string parameters on the route. |
The Data Explorer
/explorer opens the Data Explorer on the application's first model; the entry shows to whoever may use one of the application's models. /explorer/<app>/<model> opens it on one model — /explorer/crm/sales — and the model picker still lets the user switch; the entry asks for explorer:<app>:<model>.
A saved and shared analysis or dashboard of the Explorer is put in a menu from the Explorer itself, with Add to a menu (application, folder, label) — see Add to a menu. The entry it creates is a page leaf whose target is:
| Target | Opens |
|---|---|
/explorer/<app>/<model>/a/<id> | The saved analysis <id>, its result at once. |
/explorer/<app>/<model>/d/<id> | The Explorer dashboard <id>. |
Like a link to the model, it shows to whoever may use the model (explorer:<app>:<model>).
A page an application ships
/app/<app>/<page> opens a page an application ships with its plugins — a structure to browse, a guided flow, anything that is neither a grid nor a form. The entry needs the permission page:<app>:<page>. See Plugins → Pages an application ships.
A page may read and save through a screen's own queries — a record form opened from the page, the screens' import. The entry then lists those screens in Screens the page works through (tab Advanced):
- whoever is given the entry is given what the screens need: their read, and their change when the entry is given in Read and change;
- the screens count as reached from the menu — the Studio and Deploy → Integrity do not report them as opened by nothing;
- Find usages on one of those screens lists the entry;
- the integrity check reports a screen named there that does not exist.
Leave it empty for a page that works through its own functions only.
When to use
- A bundled product (Nomaflow, Nomasx-1's specialised dashboards).
- A custom React component for something queries / screens can't express (live-streaming logs, complex interactive visualisations).
- A third-party component embedded into Liberty.
The page type is rare in user-built apps — most teams build with queries / screens / dashboards. Reach for page when one of the other three genuinely can't express the surface you need.
Example
[[menus.crm.items]]
id = "ops"
label = "Operations"
icon = "settings"
[[menus.crm.items]]
id = "ops.nomaflow"
parent = "ops"
label = "Job scheduler"
icon = "calendar"
type = "page"
target = "/nomaflow"
A Job scheduler leaf in the crm app's Operations folder, pointing at the Nomaflow product's main route.
job — run a Nomaflow job
A job leaf opens the page of a Nomaflow job for users who do not administer Nomaflow: a file picker per load step that needs a file, the parameters the job declares for its users, Run, the log followed live and the previous runs.
Fields
| Field | Value |
|---|---|
type | job — Job (run it, follow its log) in the type list. |
target | The job id. The dropdown lists every job with the first line of its description. |
connector | Must NOT be set. |
params (Fixed values) | Optional: { preset = "Licences" } runs the job with one of its presets — one job, several menu entries. |
The item is shown to who may run the job: the entry or its folder in Read and change in the role, or the permission job:<id> (rule type Job in a role's Beyond the menus); !job:<id> hides it. See Run a job from an application's menu.
Example
[[menus.sales.items]]
id = "import_sales"
parent = "import"
label = "Sales file (one month)"
type = "job"
target = "sales-load-month"
Folders — group leaves
A folder is the only item kind without a type. It carries no target, no connector, no params — just id, label, icon and l (translations).
Validation
The schema's validator rejects a folder with any of:
targetset — folders don't have targets.connectorset — folders don't open anything.paramsnon-empty — same.
Behaviour
Folders are collapsed away when empty. If every child of a folder is hidden (e.g. because the user lacks permission on each), the folder itself disappears from the rendered menu. The user never sees an empty folder.
Nesting
Folders can nest indefinitely. A typical Liberty app uses 2-3 levels:
Pipeline (folder)
├── Customers (query)
├── Deals (query)
├── Activities (query)
└── Reports (folder)
├── Daily summary (dashboard)
└── Monthly revenue (query)
Deeper than 3 levels usually means the app is over-grouped — flatten when you can.
Cross-cutting rules
The connector field defaults to the app
For query and endpoint leaves, leaving connector blank means "the app's own connector" — i.e. the connector named by the menu key ([menus.crm] → connector = "crm").
Set connector explicitly when:
- The query lives on a different connector —
crmapp showing a leaf that reads fromreporting. - You're reading shared data (a
defaultconnector for framework-wide queries).
For dashboard and page, the field is always blank — the validator enforces it.
params carries fixed values
params is a flat map of key → value passed to the target at open time:
params = { STATUS = "OPEN", REGION = "EU" }
For screen and query leaves, the values bind to the query's :placeholder parameters. For endpoint, they pre-fill the HttpRunner's form. For page, they become query-string parameters. A screen, query or endpoint leaf passes them in its address when it opens — the page fills its inputs from them, as it does for a link that opens it on a record —, and so does a Links widget that points at the entry.
The two reserved tokens — #LOGIN_USER# and #SYSDATE# — work here too: a My data leaf with params = { OWNER = "#LOGIN_USER#" } lands the user on a view scoped to their own rows.
Switching type resets the fields
In the Inspector, changing type from query to dashboard clears connector (since dashboard rejects it). Switching from leaf to folder clears target, connector, params. The form prevents invalid combinations from reaching the save.
Picking the right type
| You want to open… | Use |
|---|---|
| A list of rows with optional filter / add / edit. | screen. |
| A pre-filtered list (e.g. My open tickets). | screen with params. |
| A query that has no designed screen yet. | query. |
| A custom write or read-only API call. | endpoint. |
| A page of charts and KPIs. | dashboard. |
| A hand-written React feature (Nomaflow-style), or a page an application ships. | page. |
| A Nomaflow job users run themselves (file, parameters, log). | job. |
| Another application, in a new browser tab. | url. |
When in doubt, start with screen — most user-facing pages are lists. Promote to dashboard when the layout is multiple charts; reach for endpoint only for API operations that don't fit a screen; reserve page for custom React.
Common pitfalls
| Mistake | Symptom | Fix |
|---|---|---|
query leaf with a target that's not a query name. | Clicking the leaf opens a default TableView with no columns. | Pick a real query from the dropdown. |
endpoint leaf on a SQL connector. | Save validation may pass, but at runtime the connector doesn't expose endpoints. | Point at an API connector. |
dashboard with connector. | Save validation fails. | Drop the connector field. |
page with connector. | Save validation fails. | Drop the connector field. |
params referencing a placeholder the target query doesn't have. | The bind is silently ignored. | Open the target query, declare the param. |
page pointing at a route that isn't registered. | Clicking the leaf shows a 404 page. | Verify the route exists in the frontend bundle; mistypes are the usual cause. |
What's next
- Permissions and roles — the
rolesfilter + permission inheritance per leaf type. - Translations and icons — per-language labels and icons.
- Create a screen from a query — the screen a
queryleaf opens.