Dashboards
A dashboard puts several widgets — figures, decision lists, proportion bars, charts, tables, pivots — side by side, each fed by a query of a connector or an endpoint of an API connector. A card can open the rows behind its figure and carry the buttons that act on them. It opens from the menu like a screen, and it is built in Liberty Next → Insight → Dashboards.
At a glance
Widgets
Widgets sit on a 12-column grid, in the order they are declared. Each one takes a width of 1 to 12 columns and a height of 1 to 8 rows, and carries a title and an optional subtitle — one line under the title that says what the widget covers.
| Widget | Shows | Settings |
|---|---|---|
| KPI | One figure computed over every row of a query. | Connector, query, column, aggregation (count, sum, avg, min, max, or none for the first row's value), format, compare with the previous period, Colour and A click opens. |
| Figure | A figure card read from the query's first row, with a line of detail under it. | Value column, Format, Unit, Sub line, Colour or Colour from a column, A click opens, Small card (a strip of them), Compare with the previous period with A rise is bad and Change in points (a rate). |
| List | A decision or ranked list: one line per row, with a coloured dot, a title, a subtitle, a figure and a tag. | Title column (required), Subtitle column, Value column, format, unit, Count column and Count wording, Tone column, Tag column, Rows shown, Show the total in the heading (a queue) and its colour, A click opens or Or each line opens the route in column. |
| Bars | A ranked list with a proportion bar under each row. | Label column and Value column (required), Sub label column, format, unit, Bar as a share of, Note under the bars, Rows shown, Tone column (each bar's colour), A click opens. |
| Chart | A bar, line, area or pie chart. | A chart saved in Liberty Next → Insight → Charts, or a connector, a query and a chart definition written in the widget — see Charts; A click opens. |
| Pivot | The rows as the Data Explorer's pivot: a foldable hierarchy with subtotals, one dimension spread as columns, each value's share, a total row and Excel. | Grouped by (in order), Spread across, Figures, Each value's share — see Pivot. |
| Table | The rows of a query. | Connector, query, the columns to show (all when empty), a row limit. |
| Text | A block of Markdown: what the page is for, how to read it. Headings, lists and links are allowed. | Text (Markdown). |
| Jobs | The Nomaflow jobs with their next run, their schedule in words and their last state, and Run now / Pause / Resume. Superusers only. | Jobs (ids, in order) — empty = every scheduled job —, Only these tags, Max rows (12 when blank). |
| Links | A card of entry points: menu items of the dashboard's application, or web addresses. | Links per row (1 to 4); per link a Menu item or a URL, an Icon, a Label (blank: the menu item's) and a Description. |
A widget whose query the user may not run is hidden; the rest of the dashboard still shows. Every card carries its title and subtitle inside it, and the page grows with its widgets: it scrolls to the last one.
Every widget but Text and Links also takes Read again every (seconds) — its own rhythm on a live dashboard.
A widget on an API endpoint
A widget reads a query of a SQL connector or an endpoint of an API connector that answers rows — its Rows setting says where the list is in the answer, as for a screen. The endpoint's columns that the connector's dictionary names take their entry: the label in the reader's language, the format, the list of values. A chart's legend and a list's columns then read as they do on a screen. A dashboard filter reaches an endpoint parameter that bears the name of its dictionary item — see Filters.
Figure, List and Bars
These three widgets turn a dashboard into a synthesis page: the figures that matter, what needs a decision, and the proportions, each read from a query written for it.
- Format: Number, Integer, Currency (euros, no decimals for a whole amount) or Percent — a ratio between 0 and 1, shown as a percentage. The Unit follows the figure (
users,lines); a currency carries its own symbol. - Sub line (Figure): a sentence with placeholders filled from the first row,
{COLUMN}or{COLUMN:format}—{ENABLED:integer} enabled · {DISABLED:integer} disabledgives 380 enabled · 32 disabled. A placeholder naming an unknown column stays as written. - Tone column (List): a column holding
ok,warn,errororinfocolours the dot green, orange, red or blue; any other value gives a grey dot. The query decides the tone — a period that is closed, an amount above a threshold. - Count wording (List): the text around the count column,
{n} conflict lines. The Tag column shows its value as a pill next to the title, in the line's tone. - Bar as a share of (Bars): The total of the rows — the bars add up to 100 % — or The largest row, which gets the full bar. The bars' Tone column gives each bar its colour, a theme colour by name (
blue,green,red,orange,purple,yellow,muted). - Show the total in the heading (a queue) (List): the sum of the figures shown — of the counts when there is no value column, else the number of lines — in large type at the right of the card's heading: the size of a work queue. The list beside it gives the total's colour when it is not zero (red for errors to correct).
The editor shows a live preview of the widget as soon as the connector, the query and the required columns are chosen.
The figure card
A KPI and a Figure are drawn as one card, the one an application's own pages draw too: a coloured left edge, a small uppercase label, the figure, its change, then the sub line (or the subtitle when there is none).
- Colour: the edge's colour — Blue, Green, Red, Orange, Purple, Yellow or Grey —, what the figure is about at a glance.
- Colour from a column (green, orange, red…) (Figure): a column of the row that holds one of these colour names,
bluetomuted, and wins over Colour. The query colours the card by what it says: red when issues are found, green when every run succeeded. - Small card (a strip of them) (Figure): a smaller card with a smaller figure. Consecutive small cards make a strip of their own, each at its natural height — a row of health tiles above the rest of the page.
- Compare with the previous period (Figure): with a period on the dashboard, the query also runs on the previous period; the card shows the change — ▲ or ▼ and a percentage — and the previous value. A rise is green, a fall red; A rise is bad reverses them (a queue to correct, rejections); Change in points (a rate) says the change of a percentage in points (80 % → 90 % is ▲ 10 pts). Nothing is compared on All dates.
A click opens the rows behind
A click opens turns a KPI or a Figure card, a List's lines, a Bars row and a Chart's bars, points and slices into links: the field takes a route of the application — a screen (/screen/<app>/<screen>?STATUS={STATUS}) or one of its pages. Each {COLUMN} is filled from the row behind what was clicked: the query's first row for a card, the line or the bar's row for a list or bars, the first row of the clicked X value for a chart — so a week's bar can give its first and its last day. The dashboard's filters that hold a value are added to the route as the screen's own, unless it names them already: one click from a figure to the rows that make it.
A List's lines may each lead to their own place: Or each line opens the route in column names a column of the row that holds the route of its line — an error naming its invoice opens that invoice, another its list. A line whose column is empty opens nothing.
A route may give a whole month to a screen's date column: ?DOC_DATE_month=2026-04 opens the screen on April 2026 — the route of a chart that draws one bar per month.
The page opened shows Back above its content: one click returns to the dashboard and closes the tab the page took — see Back to where it came from.
Buttons on a card
A Figure card and a List's lines can carry buttons that act on what they count: the same actions as a screen's — a confirmation, a query, a function of the application, a notification, a question to the assistant —, run with the card's row as their context.
- On a Figure, the buttons sit under the figure, the first one highlighted. Their label may name a column of the row — Resend all {COUNT} reads Resend all 12 —, and their parameters read the row's columns (
source = "COUNT"). On a small card (Small card (a strip of them)), the buttons are small too: a strip of small cards keeps its height. - On a List, each line has its own buttons beside its figure (Stop on a running process), run with that line's row; they never open the line.
- An action's visible_when conditions are checked on the row: a button shows only where they hold (Resend only when there is something to resend).
- A card offers only the buttons its reader may run, each in the reader's language; the others are not drawn. A button that asks the assistant shows only to a user who may chat, while the assistant is on.
- What the action says appears under the buttons, and the card is read again once it has run.
A long job started by a button is followed with a follow step after the step that starts it. It reads the job's state from a function of the application every few seconds (1.5 s by default) and shows it in a window: a bar, what is processed, succeeded and failed, and the line the function gives. Cancel, offered when the step names a function that stops the job, asks first, then lets the job finish what it is doing. Run in background closes the window: the job goes on, its card shows it as a chip with its progress — a click opens the window again —, a notice says when it ends and the card is read again. The step works from a screen's toolbar or row menu as well.
The buttons of a card are set in the widget dialog: Actions on what it counts for a Figure (the buttons under the figure, run with the card's row), Each line's actions for a List (the menu of a line, run with that line). Each is the list of actions of the screen designer — Add action, a click on an action opens the same editor of one action —, with the card's connector as the actions' own and the columns of its query as what a step may bind. Without any: No action. They can also be written in the dashboard's file — see In TOML.
Buttons in the dashboard's bar
A dashboard may carry buttons of its own, in its bar before Excel and PDF: actions on the whole dashboard, such as a Recompute that has the source count its figures again. They are the screens' actions — a confirmation, a function of the application, a message, a job followed in its window — run with no row; once one has run, every card is read again.
- They are set in the editor, under the title: Buttons in its bar (Act on the whole dashboard ("Recompute"): run with no row, then every card is read again.), with the same list and editor of actions as a card's.
- Only the buttons the reader may run are drawn, in his language.
- A job a button starts and leaves in the background shows in the bar as a chip with its progress; a click opens its window again. What the last button said shows beside them.
Pivot
A Pivot widget shows the rows of its query as the Data Explorer's pivot. The query returns one row per combination of the dimensions, with its figures.
| Field | Effect |
|---|---|
| Grouped by (in order) | The columns that may group the rows, as a foldable hierarchy with subtotals. All of them group the rows at first. |
| Spread across | A column whose values become the pivot's columns, one per value. Blank: none. |
| Figures | The figures summed; the first one is shown at first. |
| Each value's share | Beside each value, its share of the level above (the default), of the total, or none. |
Above the pivot, the reader picks the dimensions that group the rows (Group by) and the figure shown (Measure). A blank value ends a line at its parent: a status without a reason stays one line. The pivot carries a total row and its own Excel export. The columns are named by their labels in the reader's language.
Jobs
A Jobs card puts the scheduler on a dashboard. Each line shows the job by its name — a click opens it in Nomaflow —, its next run or Paused, when it runs (every day at 03:00, or the number of its schedules), the state of its last run, and three buttons: Run now with the job's saved values, Pause its schedules, Resume its schedules — applied at once to every schedule of the job. Without ids, the card lists the scheduled jobs, the next to run first, optionally narrowed to some tags (main, nomasx1). The card refreshes itself while a run is going.
The card is for superusers only: for anyone else, it does not show on the dashboard.
Text and Links
These two widgets turn a dashboard into the home page of an application: a few lines on what it does, the figures, then where to go.
- A Text or Links widget the full width of the grid (12 columns) takes the height of its content, with no scroll bar; a narrower one scrolls within its tile.
- A Links widget only shows the menu items the user may open: an entry their roles do not grant disappears from the card. A URL opens in a new browser tab. A URL link needs a label.
- In an export, a text keeps its Markdown and a links card becomes a table (Link, Description).
The period
A dashboard can carry a period: a date range control in its bar that applies to every widget.
- Presets: Today, Yesterday, Last 7 days, Last 30 days, This month, Last month, This quarter, This year, Last year, Last 12 months, All dates. The Yesterday preset covers yesterday and today.
- A free range: pick a start date, then an end date, in the two-month calendar, then Apply.
- Date basis: when the dashboard offers several dates (Document date, Paid on), a Date choice at the bottom of the panel picks the one the range applies to.
The dashboard opens on its own default preset, otherwise on the application's default (Liberty Next → Administer → App → Default period (dashboards), This month by default). A choice lasts as long as the dashboard tab stays open.
What the queries receive
| Bind | Value |
|---|---|
:PERIOD_FROM, :PERIOD_TO | The chosen range, as dates. All dates binds 0001-01-01 to 9999-12-31. |
:PREV_FROM, :PREV_TO | The period before (see below). |
:PERIOD_BASIS | The chosen date basis, when the dashboard offers several. |
A query that does not mention them is not affected. When the period names its date column — directly or through a dictionary item found in the widget's screen — the widget is also filtered on the server on that column, without any change to its SQL.
The previous period
| Range | Compared with |
|---|---|
| Starting on 1 January (This year, Last year) | The same dates one year earlier. |
| Starting on the 1st of a month | The same number of months just before — Last month with the month before, a whole quarter with the quarter before; This month on the 27th with the 1st–27th of the previous month. |
| Anything else | The same number of days just before. |
Comparing a KPI
With Compare with the previous period ticked, a KPI runs its query a second time on the previous period and shows, under the figure, the change — in percent, in points for a percent KPI — in green or red, and the previous value. Nothing is compared on All dates.
Filters
A dashboard can also carry filters, shown as dropdowns in its bar. Each filter has a label, a dictionary item and a query that provides its choices (value column and label column), and an optional value at opening — the value the dashboard opens on. Choosing a value reloads every widget whose query returns a column carrying that dictionary item — through the widget's screen, or directly from the query's result columns: a column with the item's name, or with the connector's column prefix in front of it. The other widgets are left as they are. A period whose date column is given as a dictionary item finds its column the same way.
In the editor, each filter says which widgets it reaches — Reaches: …, with not: … for the others — or Reaches no widget when no column carries the dictionary item.
With All, nothing is filtered: a query that returns one total row first, then one row per value, shows the totals in its Figure and List widgets.
Fixed choices
A filter takes its choices from a query, or from a few fixed choices written in the editor: sales or purchases, with or without the reviewed errors. Up to four fixed choices are drawn as segments in the bar — All · Sales · Purchases, one click each —, more as a dropdown. With Offer "All" unticked, a choice is always picked: give the filter a value at opening.
A filter on an API endpoint
A widget that reads an endpoint receives the filter's value in the endpoint parameter that bears the name of the filter's dictionary item, when the endpoint has one: the server filters its own rows. A value the widget gives that parameter by name wins over the filter's.
Refresh and cache
When a dashboard is opened again, each widget reuses its last result for Liberty Next → Administer → App → Dashboard cache (seconds, 0 = none) — 60 seconds by default. The ↻ button in the bar reloads everything, and Updated at 14:05 says when the data was fetched. The cache is kept in the browser, per user, until the page is reloaded.
Live dashboards
A dashboard with Read again every (seconds) — 5 to 3,600, set in the editor next to its title — reads every widget again at that rhythm while it is on screen: a queue, a scheduler, a monitor. The bar then shows a Live (every 30 s) box, ticked: unticking it stops the reading until it is ticked again. A browser tab that is hidden does not read.
A widget may have a rhythm of its own on top of the dashboard's — Read again every (seconds) in its dialog, 2 to 3,600: a live feed read every 5 seconds on a dashboard read every 30. Blank, the widget follows the dashboard.
Export to Excel and PDF
The Excel and PDF buttons, next to ↻, export what the bar holds: the filter picks, the period and its date basis, under the user's data scope. The server runs every widget again; nothing is taken from the screen.
| Excel | ||
|---|---|---|
| Layout | One sheet per widget; the KPIs together on a Key figures sheet. | A cover with the dashboard, the period and the filters, then the widgets one after the other. |
| KPI, Figure | A row of values. | A card, with the sub line in small type under the figure. |
| List, Bars, Table | Its rows. | A table. |
| Text, Links | The text; the links as rows. | The text; a table of the links. |
| Chart | Its data table. | The chart drawn, with a legend and the values on the bars. |
A widget whose query fails becomes an error section; the rest of the export still renders. Numbers follow the reader's language (1 234,5 / 1,234.5). PDF branding is set in Liberty Next → Administer → App.
Building a dashboard
Liberty Next → Insight → Dashboards lists the dashboards of one application: the Connector chips at the top pick it, Add scope adds another, and Filter… narrows the list. Each line gives the id, the title, the number of widgets and filters, and the description. Add dashboard and Reload config are in the page header, and each line has:
| Button | Effect |
|---|---|
| Find dependencies | Lists what the dashboard relies on (queries, charts, connector…) and downloads it with the ticked items as a package. |
| Rename | Changes the dashboard's id. |
| Clone | Copies the dashboard under a new id. |
| Delete | Removes the dashboard. |
Opening the editor
Add dashboard first asks for the new dashboard's name (Its name:, e.g. Sales overview) and makes its id from it (sales_overview), shown while it is typed. A click on a line, or the name given, opens the editor over the whole window. Its title bar names the dashboard by its title, followed by its application and its id (Sales overview sales · overview). A refused save keeps the editor open and lists what to correct — see A refused save.
| Part | Content |
|---|---|
| Title, Description | Shown at the top of the dashboard; the In the other languages block under them gives both in the other languages — see Texts in other languages. |
| Read again every (seconds) | Beside them: makes the dashboard live, 5 to 3,600 seconds. Blank: on demand. |
| Keep this one as it is on upgrade (an upgrade of the application then leaves it as saved here) | Ticked, an upgrade of the application that ships the dashboard leaves it as saved here. |
| Buttons in its bar | The dashboard's own buttons, drawn in its bar — see Buttons in the dashboard's bar. |
| Add widget | Chart, KPI, Table, Figure, List, Bars, Pivot, Text, Links or Jobs: the widget's dialog opens on that kind, and Cancel leaves nothing behind. |
| The grid | The real widgets, drawn with live data as the dashboard shows them, each under its label. Hovering a card shows its tools: the grip, its size (4 × 1, columns × rows), ✎ to edit it and the bin to remove it. A card is moved by drag and drop — its grip dragged onto another card, a bar showing on which side it will land — and sized by its bottom-right corner, in whole columns (1 to 12) and rows (1 to 8). The grip takes the keyboard too: arrows move the card, Shift + arrows size it. |
| Period | Add a period / Remove the period: Opens on (a preset, or App default (Liberty Next → Administer → App)), Date column or or dictionary item, and optional Date bases (key, label, date column or dictionary item). |
| Filters | Add filter: Id, Label, Dictionary key, Choices from — A query (the Connector, the Query, the Value column and the Label column that fill the dropdown) or Fixed choices (Choices, one per line, value = label, and Offer "All") —, and Value at opening — the value the dashboard opens on (blank: none: every value). Under each filter, Reaches: … names the widgets it filters — see Filters —, and an In the other languages block gives its label in the other languages. A filter left without an id or a label stops the save: A filter has no id or no label yet: complete it or remove it. |
The footer counts the widgets and holds Cancel and Save. Closing the editor with unsaved changes asks whether to save them, discard them or keep editing.
The widget dialog
The ✎ of a card opens the Widget dialog: the ten kinds as tabs at the top — a widget can change kind —, then Label, Width (1–12), Height (rows), Read again every (seconds) (not for Text and Links), Subtitle, the connector and the query, and the fields of the kind (see Widgets). The connector list holds the SQL connectors and the API connectors, each tagged SQL or API: for an API connector, the list below offers its endpoints — see A widget on an API endpoint. A Figure takes Actions on what it counts and a List Each line's actions — see Buttons on a card. Below the fields, a preview draws the widget with live data as soon as the required fields are set. The footer shows the widget's kind (stat, list…) on the left, Cancel and Save on the right.
Texts in other languages
A dashboard reads in the user's language. Every text it shows is given in the other languages in the editor itself, in an In the other languages block under the field: one line per language, one box per text. A box left blank shows the text as written (Left blank, the text above is shown.).
| Where | The block gives |
|---|---|
| The dashboard | Its Title and its Description. |
| A widget (its dialog) | Its Label and Subtitle, and by kind: the Sub line and Unit of a Figure; the Count wording, Unit, and the Title column, Subtitle column and Tag column (a pill) of a List; the Note under the bars, Unit, Label column and Sub label column of Bars; the Text (Markdown) of a Text. |
| A link of a Links widget | Its Label and its Description. |
| A filter | Its Label. |
A column given in another language names the column to read for the users of that language — for a query that returns one column per language (TITLE, TITLE_FR).
To make the dashboard reachable, add a dashboard entry to a menu (Menus); its permission is dashboard:<app>.<id>.
In TOML
[dashboards.sales.overview]
label = "Sales overview"
period = { column = "DOC_DATE", default = "thisMonth" }
[[dashboards.sales.overview.widgets]]
type = "kpi"
label = "Revenue"
connector = "sales"
query = "revenue_by_company_get"
column = "REVENUE"
aggregation = "sum"
compare_previous = true
col_span = 4
[[dashboards.sales.overview.widgets]]
type = "chart"
chart = "revenue_by_month"
col_span = 8
row_span = 2
In the file, the buttons of a card sit under the widget — actions for a Figure, row_actions for a List — and the dashboard's own buttons under the dashboard ([[dashboards.<app>.<id>.actions]]): the actions of a screen, with their steps.
[[dashboards.billing.it.widgets]]
type = "stat"
label = "Send failed"
connector = "billing"
query = "send_failed_count_get" # one row: COUNT, ANY = 'Y' when COUNT > 0
value_column = "COUNT"
tone = "red"
open = "/screen/billing/invoices?STATUS=9904"
[[dashboards.billing.it.widgets.actions]]
id = "resend_all"
type = "chain"
label = "Resend all {COUNT}"
l = { fr = "Tout renvoyer ({COUNT})" }
visible_when = [{ field = "ANY", value = "Y" }]
[[dashboards.billing.it.widgets.actions.steps]]
id = "start"
type = "call_plugin"
callable = "billing.bulk:resend_all" # starts the job, answers its id
bind_result = true
[[dashboards.billing.it.widgets.actions.steps]]
id = "watch"
type = "follow"
title = "Resend in progress"
callable = "billing.bulk:job_state" # state, total, processed, succeeded, failed, summary
cancel_callable = "billing.bulk:job_cancel"
cancel_message = "Stop this resend? What is sent stays sent."
param_binds = [{ param = "id", source = "start.first_row.job_id" }]
[[dashboards.billing.it.actions]]
id = "recompute"
type = "chain"
label = "Recompute"
l = { fr = "Recalculer" }
[[dashboards.billing.it.actions.steps]]
id = "count"
type = "call_plugin"
callable = "billing.stats:recompute" # has the source count its figures again
bind_result = true
[[dashboards.billing.it.actions.steps]]
id = "said"
type = "notify"
tone = "ok"
message = "Figures counted again at {count.first_row.at}."
The function named by a follow step answers the job's state: state (queued, running, succeeded, failed or cancelled) and, as far as it knows them, total, processed, succeeded, failed, a summary line and an error. Its last answer is kept under the step's id for the steps after it.
Integrity
Deploy → Integrity checks every widget and every saved chart: its source must be a query of its SQL connector, or an endpoint of its API connector that answers rows (one whose Rows setting says where the list is). An endpoint that answers no rows, and a query or an endpoint that does not exist, are reported as errors (Missing query), with a link to the dashboard or the chart.
Tips
- Give the dashboard a period rather than date filters in each query: one control, and the comparison comes for free.
- For a synthesis page, write one small query per Figure or List and let the query compute the tone: the dashboard only shows it.
- A KPI with
noneshows the first row's value: let the query compute the figure when the aggregation is complex. - Keep the cache on for dashboards opened often; ↻ always gives fresh figures.
- Give each figure card the route of the rows it counts (A click opens): the reader goes from the figure to the list in one click, with the dashboard's filters applied.
- For a work queue, let the query return a
TONEcolumn and use Colour from a column: the card turns red only when there is something to do. - Keep Read again every for dashboards watched on screen (a queue, a monitor); a long rhythm (30 to 60 seconds) is enough, and a widget that must move faster takes its own.