Queries & filters
Section titled “Queries & filters”This guide is for builders who want people to see exactly the records that matter to them — my open tasks, requests from my department this month, invoices over 10,000. By the end you will be able to build a saved query on an entity, make it follow the person using it or today’s date, ask for a value when it runs, offer it as a one-click quick filter or a coloured tag, and reuse it in views, reports, reference fields and dashboards.
How a query works
Section titled “How a query works”A query is a saved filter over the records of one entity. It is made of conditions, and each condition has three parts:
| Part | What it is | Example |
|---|---|---|
| Field | What to test | Status |
| Operator | How to compare | = |
| Value | What to compare with | Open |
Conditions are combined in a group: All conditions are met (every condition must hold) or Some conditions are met (one is enough). A group can contain further groups, so you can write “Status = Open and (Priority = High or Due date < today)”.
Take a Tasks entity. My open tasks is two conditions — Assigned to = @me and Status = Open — under All conditions are met. Because @me stands for whoever is looking, one saved query shows each person their own tasks.
Create a query
Section titled “Create a query”- Open the entity’s designer: Administration › Applications › Modules, open the module, open the entity, and edit it.
- Select the Queries tab. It has three sub-tabs: Queries, Tag groups and Quick filter groups.
- On Queries, select + (New Query).
- Build the conditions — see Build the conditions. Select Condition to add a condition and Group to add a nested group; Clear starts again.
- Under Query Settings, enter the Query Name (in each language, 3 to 128 characters).
- Optionally tick Quick Filter to offer it as a quick filter (see Quick filters), or Save Tag to colour matching records (see Tags).
- Select Save Query.
In the list, each query is marked Normal Filter, Quick Filter or Parameterized. Select + on one of those group headings to start a new query of that kind.
Since 1.10 the query dialog always saves. To try
out conditions without saving them, use the Filter panel on the entity’s
entries list instead.
Build the conditions
Section titled “Build the conditions”The field
Section titled “The field”You can test:
- The record’s own fields — for example Task title or Assigned to.
- The record’s details — Created by, Creation date, Updated by, Update date.
- Fields of a related record — pick a reference field and drill into the record it points to, for example Department › Region = West. Each level adds work, so keep chains short.
- Workflow details — on an entity with a workflow, the current step, its owner, previous steps and their owners. This is how you filter for “open” requests: current step is not the final step.
- Calculated (virtual) fields — filtered and sorted on their calculated value. If the calculation fails for a record, the list still loads and a warning is shown.
The contents of a JSON field cannot be filtered or searched. If you need to filter on a piece of data, make it a real field.
Protected fields in a condition Since 1.10
Section titled “Protected fields in a condition Since 1.10”- An encrypted field cannot be used in a condition at all — its stored value is scrambled, so nothing could ever match.
- A sensitive field can be used in a query you build here in Administration, even if you may not read its values. People using the query through a view still need permission to read the field, and the results still show the value masked to anyone without it. See Sensitive fields.
The operator
Section titled “The operator”The operators offered depend on the field’s type:
| On screen | Means | For |
|---|---|---|
| = · != | equals · does not equal | every type |
| < · <= · > · >= | before/after, less/more than | numbers and dates |
| contains · doesn’t contain | has the text anywhere (case does not matter) | text |
| starts with · doesn’t start with | begins with the text | text |
| is like · isn’t like | matches a text pattern | text |
| in · not In | is one of a list | references, categories, users |
| is empty · is filled | has no value · has a value | every type |
| under | sits below a record in a tree (hierarchy) Since 1.2 | tree entities |
Fields with several values — a multi-value field, or a field inside a repeatable block — can first be reduced to one value: Count of values, Sum, Average, Min, Max, First Value or Last Value. For example, Items Count of values > 3 finds records with more than three item rows.
Without one, the condition uses Any Value: it
matches when any of the values meets it. Since 1.8 a condition saved without a
choice here is treated as Any Value, in queries and in reaction filters alike.
“is empty” and “is filled” Since 1.8
Section titled ““is empty” and “is filled” Since 1.8”is filled matches only a record where the field is present and has a value; is empty matches a record where the field is missing, blank or an empty list. Queries, reaction filters and reference-field lists all agree on this.
One limit to plan around: a condition looks at a field across all rows of a repeatable block at once — it cannot ask “does at least one row have this filled”. A block with one empty row and one filled row counts as empty. If you need row-by-row logic, add a separate marker field on the record.
The value
Section titled “The value”Choose where the value comes from:
| Value source | Use it for | Example |
|---|---|---|
| Fixed | A value you choose now | Status = Open |
| Field | Another field of the same record | Assigned to = Updated by |
| Pointer | A value that depends on who is looking, or when | Assigned to = @me |
| Expression | A formula, for cases the others cannot express | — |
| Parameter | A value supplied when the query is used | see below |
The Pointers offered depend on the field:
- Users and groups — @me (the person looking), @myGroups (their groups), @myRoles (their roles), @myOrgUnit (their organizational unit), and more for group membership.
- Dates — @today, @now (today with the time), @StartOfDay, @StartOfWeek, @StartOfMonth, @StartOfYear.
With Expression, the hint under the box says what the formula must return —
for example a yyyy-MM-dd date for a date field.
Ask for a value when the query runs: parameters
Section titled “Ask for a value when the query runs: parameters”A parameter is a named blank in a condition that is filled in later — for example Department = the parameter dept.
- In a condition, choose Parameter as the value source and enter a parameter name.
- Save the query. It is marked Parameterized.
Where the value comes from depends on where the query is used:
- As a view’s source or in a reference field — you set the values in that view’s or field’s own settings.
- As a quick filter
Since 1.10— when someone turns it on, a Query parameters dialog asks them for each value. The filter then runs with those values; if they save it, it is saved as a new query of their own.
Good to know:
- The same parameter name can be reused in several conditions only on fields of the same type.
- Removing every parameter from a query turns it back into a normal one. A normal query cannot be turned into a parameterized one later — create a new query.
- A quick filter with a parameter cannot be switched on by default in a view, and is left out of template exports (the view says so). The quick export applies it with the values the person entered.
Since 1.10a Parameterized badge marks these queries wherever you pick a query in Administration.
Offer one-click quick filters
Section titled “Offer one-click quick filters”A quick filter is a query people can switch on from an entries list with one click; its conditions are added to whatever they have already filtered.
- In the query, tick Quick Filter.
- Enter the Name people will see (left blank, it is taken from the query name).
- Optionally choose a Group — or create one with New group.
- Select Save Query.
Which quick filters a list offers, where they appear and whether one is on by default is set per view — see Quick filters, groups and ordering. People reach a quick filter only through a view that lists it.
Quick filter groups Since 1.10
Section titled “Quick filter groups Since 1.10”A quick filter group collects related quick filters — for example By region with North, South and West — so a view can offer the whole set at once.
- On the Queries tab, open Quick filter groups and select New quick filter group.
- Enter the Quick filter group name in each language.
- Use Add existing filter or Create quick filter to fill it.
A quick filter belongs to at most one group; adding it to another group moves it (the dialog shows Moves from …). Group names must be unique on the entity. Deleting a group keeps its quick filters — they just become ungrouped.
Colour matching records: tags
Section titled “Colour matching records: tags”A tag marks the records a query matches, with a colour people see in the list.
- In the query, tick Save Tag.
- Enter the tag’s Name, and choose its Color and Icon.
- Choose a Tag Group, or create one with New group.
- Select Save Query.
People apply tags from the entries list’s tag options, as a coloured frame or background. Tag groups are managed on the Tag groups sub-tab, in the same way as quick filter groups.
Use a saved query elsewhere
Section titled “Use a saved query elsewhere”A saved query can be the source of:
- Views — the view shows only matching records.
- Reference fields — the field offers only matching records to choose from.
- Reports (web only) — the report’s rows.
- Summaries and dashboards — the records a summary counts or totals.
- Reactions — which records a reaction runs for.
- Grafana panels
Since 1.6— a panel can run a saved query, and its parameters become dashboard variables. See Grafana dashboards.
Apply, change or delete a query
Section titled “Apply, change or delete a query”On the Queries sub-tab, each query has:
- Apply query — shows the matching records on the entity’s entries list.
- Edit — change it and select Save Query.
- View Dependencies — see where the query is used before you change it.
- Delete This Query — removes it permanently. A query created by the platform, or one used by a virtual, joiner or aggregator entity, cannot be deleted.
Find a query in a long list Since 1.10
Section titled “Find a query in a long list Since 1.10”The list’s toolbar can search query names and their conditions, filter by type, tag, field, who created or changed it and when, sort by last modified, created date or name, and group by type, tag or not at all.
Recipes
Section titled “Recipes”| You want | Conditions |
|---|---|
| Only my records | Created by = @me |
| Records assigned to my team | Assigned group in @myGroups |
| Created this month | Creation date >= @StartOfMonth |
| Due in the past and not done | Due date < @today, and Status != Done |
| Has more than three items | Items Count of values > 3 |
| Department chosen when used | Department = Parameter dept |
Searching, sorting and entry state on a list
Section titled “Searching, sorting and entry state on a list”These belong to the entries list rather than to a saved query:
- Search looks across every searchable field. A field is searchable when a view enables search on it, or when the field’s own search option is on.
- Sorting is newest-changed first by default. People can pick a field and a direction from the sort menu, or use a column’s sort icon.
- Entry state — people can include archived or obsolete records (records that no longer match the entity’s current design), when the view allows it.
To count or total records rather than list them, use a summary — see Summaries & dashboards. To add totals under a list, see Totals & grouping.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| A field is missing from the field list | Encrypted fields and JSON contents cannot be filtered. |
| A date condition matches nothing | Compare date-only fields with @today or @StartOf…, not @now. |
| A repeatable-block condition looks wrong | A condition reads all rows at once; see is empty and is filled. |
| The query cannot be saved: name already used | Query names must be unique on the entity. |
| People are asked for a value every time | It is a parameterized quick filter — that is by design. |
| A query cannot be deleted | It is used by a virtual, joiner or aggregator entity, or was created by the platform. Check View Dependencies. |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27