Skip to content

Data sources

A data source is a named connection to data — usually an API endpoint. You define sources once per view in the bottom DataSources tab, then bind elements to them. Sources are referenced everywhere by name.

The source editor

Click Add Source in the bottom DataSources tab. Every source has:

FieldWhat it does
NameThe technical name used everywhere else (loadClients, saveOrder).
TitleA friendly display title for the list.
TypeREST, Route data, or Local JSON.

REST

FieldWhat it does
UrlThe endpoint, with optional {placeholders}: https://api.example.com/clients/{clientId}. Required — actions using a URL-less REST source warn in the editor.
MethodGET, POST, PUT, DELETE… or TABLE-POST — a special method for a Table's data source: sends a real POST but automatically adds the current page, sort, and search state to the request body. Ask your developer to read Table: server-side paging & filtering for the exact shape.
Request body (optional)JSON template with {…} placeholders. Example: {"rows":"{__table.el1.selectedRows}"} — use {id} style tokens for the URL and {__table.el1.selectedRows} style paths in the body.
Data pathWhere the useful data lives in the response (e.g. data.items).

{placeholders} are filled from the request params you map on the element or action. If a required placeholder has no value yet, the request is skipped — a city list bound to {countryId} simply stays empty until a country is picked.

Route data

FieldWhat it does
Route data keyKey in the Angular route's resolver/data object.
Data path (optional)Path inside that object.

Local JSON

FieldWhat it does
Local modeJSON (inline data) or Another question value (points at existing form data).
JSON dataThe inline JSON when mode is JSON.
Local functionOptionally call a JS function for the data. Example: window.myFunction or this.myFunction.

Object creator

For non-trivial JSON, the Object creator dialog builds a valid object visually instead of hand-typing:

FieldWhat it does
Root typeWhether the root is an object or array.
Add root field / Add field / Add nested fieldGrow the structure; objects and arrays can contain nested fields.
Field nameThe JSON key.
TypeObject, Array, Property — or a plain value (Text, Number, Boolean, Null).
Value / other field nameThe literal value, or a reference to another field.
Binding pathUse {path} to bind to live form data, or a static value.
JSON previewInsert into JSONReview the generated JSON, then insert it into the source.

Binding a source to an element

Choice elements, tables, list grids, and charts have a Data source binding in the Primary source section of the properties sidebar:

FieldWhat it does
Data sourceWhich source feeds this element. Dependent fields are supported via the param map and refresh paths.
Use asOption — the source loads selectable options (select, radio, checkbox); Value — the source loads the field's value.
Option value key / Option label keyWhich response fields become the stored value and the visible label.
Items pathWhere the array lives in the response (e.g. data.items).
Filter options byLegacy conditional filter — leave empty if unused. Prefer the Filter if equal / not equal option properties.
Param mappingOne row per {placeholder}: Param (the placeholder name) → Value / {path} (a form path, variable, or plain value). Auto from params pre-fills rows from the URL/body placeholders. Only used for REST URL/body placeholders.
Reload source when mapped question value changes (React to change)Auto-reload when a mapped param's value changes.
Listen fieldsComma-separated extra paths to watch (e.g. el1 or panel.userId). If empty, the system auto-detects from URL placeholders and the param mapping.
Lazy loadFetch on demand — tables load per page/sort, autocomplete loads as the user types.

Example — country → city dropdowns

  1. Define sources: loadCountries (GET /api/countries) and loadCities (GET /api/cities?country={countryId}).
  2. Element country (Select): data source loadCountries, use as Option, value key code, label key name.
  3. Element city (Select): data source loadCities, param countryId = {country}, React to change on.

Picking a country now reloads the city list automatically; before any pick, the city list stays empty because {countryId} is missing.

Filling values (not options)

With Use as: Value, the response is written into the element. A whole panel of read-only fields can be populated by one GET /api/clients/{id} source whose params come from {__variables.route.id}.

Saving data

Saving goes through actions: a button's dataSource action calls a POST/PUT source, passing fields via Placeholder mapping or the whole form as the body template. Combine with Validate whole form before action, Elements to reload, and Show toast after successful action.

Reloading from expressions

runDataSource("loadUsers") inside any expression re-runs a source — occasionally useful in advanced logic. Prefer element bindings with React to change for normal flows.