Concepts

Dashboards

Web parts reading data sources, connected so that one part can filter another.

A dashboard is web parts (charts, grids, cards and more) in the zones of a layout, reading the dashboard's data sources, with connections from parts to data source parameters. Clicking a pie slice can filter another chart's data, with no code in either part.

Data sources

Data sources belong to the dashboard, not to its parts. A part's settings name the data source it reads. Data sources run on the server, with the reader's permissions, so parts never see a token or build a query. A perspective the reader can't read is an error for that data source only; the rest of the dashboard works.

KindDefined byRows
Aggregateperspective, select (region=region, total=sum(amount)), group, having, where, orderOne per group, with the aliases as columns. See Aggregation.
Entity queryperspective, fields, where, orderOne per entity, with _id and the fields.
Viewview, and optionally where (on its columns) and orderThe view's rows and columns.
Staticcolumns (name, type, label) and rowsThe rows typed in, sorted by order.

Every kind takes take (default 500, at most 5,000).

Parameters

A data source can have parameters: { name, field, operator }, with an operator from = != < <= > >= ~=. A parameter with values adds (field op 'v1' | field op 'v2' …) to the filter; a parameter without values doesn't filter at all, so "nothing selected" means "everything".

Values are written as quoted literals, which the query language converts to the field's type, so a value can't change the shape of the filter.

Connections

json
{ "part": "donut", "endpoint": "selectedCategory", "dataSource": "picked", "parameter": "department" }

When the donut's selected category changes, the parameter is set, the data source runs again, and every part reading it redraws. The endpoint must be a field (or row) provider declared in the part's manifest, and the field types must be compatible: numbers with numbers, and untyped providers with anything.

Web parts

The parts come from web part packages installed in the database's resources. OmniCore's own two packages are installed when the server starts:

  • Charts: line, vertical bar, horizontal bar, pie and donut.
  • Basics: grid, heading, HTML and card.

Their settings are listed in Built-in web parts. Developers can write their own with the web part SDK.

Layouts

Dashboards use the same layouts as forms. Each zone holds an ordered list of parts, and each part's height comes from its manifest's default size.

Who can do what

Open a dashboardAnyone signed in. What each reader sees is decided by the data sources' permissions.
Design oneSystem Admins.