Maker guide
Designing dashboards
Add charts and other parts, define data sources and connect parts to parameters.
Dashboards lists the dashboards, each with its layout, number of web parts and data sources, and when it changed. Read Dashboards for data sources, parameters and connections.
Making a dashboard
Press New dashboard, enter the name and choose a layout card. The dashboard is made empty and the designer opens.
The designer
It works like the form designer:
| Area | What's there |
|---|---|
| Left | Web parts, by package: OmniCore's basic parts (grid, heading, HTML, card) and charts, and any others installed. Below them, the Data sources. The search box filters the web parts. |
| Middle | The dashboard running in its layout's zones, with live data. The parts are the real ones, so clicking a slice filters what it's connected to. |
| Right | The selected part's settings and connections; or a data source's definition; or the dashboard's display name and description. |
Adding and moving parts
- Drag a web part into a zone, or choose a zone and press the part.
- Move tiles by dragging, with the arrows, or with the Zone list. The bin removes one.
A part's settings
The settings form comes from the part's own configuration schema, with pickers for the data source and its columns. A part without a schema is configured as JSON.
For example, a donut chart takes a title, a data source, a category column and a value column. A card takes a heading, a data source, a value column and how to show it: the first row's value, or a sum, average, count, minimum or maximum over the rows. See Built-in web parts.
Data sources
Press New data source and set:
- its name (letters, digits and
_). Renaming one follows into the parts and connections that use it. - its kind: aggregate, entity query, view or static;
- its definition:
| Kind | Definition |
|---|---|
| Aggregate | The perspective; select (status=status, orders=cnt(), total=sum(orderTotal)); group (status); optionally having, where and order. |
| Entity query | The perspective, the fields, where and order. |
| View | The view, and optionally where and order. |
| Static | The columns (name, type, label) and the rows. |
- its parameters: each a name, a field and an operator.
Preview runs it and shows the rows, before you save.
Connections
Select a part to see its connections: each field provider it declares (such as a chart's Selected category), the data source parameters it fills, and a list of compatible parameters to add.
To make a bar chart follow a donut:
- Add a data source
picked, like the donut's but with a parameterdepartmenton the fielddepartment, operator=. - Point the bar chart at
picked. - Select the donut and connect Selected category to
picked→department.
Now clicking a slice sets the parameter; picked runs again and the bar chart redraws. Clicking the slice again clears
it, and with no value the parameter doesn't filter.
Saving
Save sends the dashboard; the database checks its parts, data sources and connections and lists any problems. Dashboards asks first if there are unsaved changes. Saved dashboards appear in the portal.