StableData binding
Database
Overview
Records (or a count/sum) from one of your entities, with filters, sorting, a limit, search and grouping.
Purpose
This is the data source of tables, lists, cards, calendars, charts and KPIs. From the Data Picker you can also drop an entity count on any text property (“12 open jobs”).
Inputs
- Data Picker group Database:
Entity (count)for every entity — a quick aggregate. - The full form is edited in a component's Data tab: entity, filters (field / operator / value — values can be dynamic), sort, limit (1–1000), search (dynamic text), and for KPIs/charts an aggregate (count, sum, avg, min, max) and Group by.
Configuration
- Filters with an empty dynamic value are skipped, so
Status equals Page state › statusshows everything until a status is chosen. - Data is cached for a few seconds and refreshed after Create/Update/Delete actions or Refresh data.
Outputs
- A list of records for data components; a number for aggregates (
{ value }) or a list of{ key, label, value }groups when grouping. The user's permissions are applied on the server: hidden fields are removed and own-records rules filter rows.
Example
Open jobs KPI
Example
KPI · Data: Jobs · Filter: Status is “open” · Aggregate: count
Text: {{…}} is not needed — bind the KPI's value to the queryErrors
- “The connected entity was deleted.” — pick another entity.
- “Please sign in to see jobs.” / “Your role can't read jobs.” — the entity's permissions block the current user.
Limitations
- Query bindings only work as a component's data source or aggregate; in templates they print nothing.
- Up to 1,000 records per query; large entities should be filtered.
Advanced
{ type: "query", entityId, filters?, sort?, limit?, aggregate?, groupBy?, search? }. Resolved byuseCollection/useAggregate(TanStack Query) against/api/runtime/<project>/records/<entity>and/aggregate/<entity>;evaluateBindingreturnsscope.resolveData?.(b), which the renderer does not provide.