Reference

Built-in web parts

The web parts OmniCore ships, for forms and dashboards, and their settings.

On forms

Built into the forms designer:

PartIdSettings
Headingomnicore.headingtext; level: large (a section heading) or small (a sub-heading)
Textomnicore.texttext: a paragraph, several lines
Divideromnicore.divider—
Sub-gridomnicore.subgridtitle (default: the relationship's display name), relationship, view
Lookupomnicore.lookuplabel, hint, placeholder, readOnly, relationship, view

Sub-grids and lookups are offered for each of the form's perspective's relationships, by the side it's on. See Forms.

On dashboards

Two packages, installed into the database's resources when the server starts.

Charts (omnicore.charts)

PartIdShows
Line chartomnicore.line-chartOne line per value column over a category or date column.
Bar chart (vertical)omnicore.bar-chartOne group per category, one bar per value column.
Bar chart (horizontal)omnicore.bar-chart-horizontalOne row per category: rankings and long names.
Pie chartomnicore.pie-chartEach category's share of the total.
Donut chartomnicore.donut-chartEach category's share, with the total in the middle.

Line and bar chart settings:

Setting
titleTitle
datasourceData source
categoryCategory column
value, value2, value3Up to three value columns: one line or bar each, with a legend
colorColour of the first value
showValuesShow the values
showLegendShow a legend

Pie and donut settings: title, datasource, category, value, showLegend (on by default) and showPercent.

Every chart provides selectedCategory (a field: clicking a bar, point or slice selects its category; clicking again clears it) and raises clicked (an event). Charts are keyboard-operable and draw at their tile's size.

Basics (omnicore.basics)

PartIdSettings
Gridomnicore.gridtitle, datasource, columns (comma-separated; empty for all), pageSize (default 20, at most 500), searchable (on by default)
Headingomnicore.headingtext, subtitle, size (large, medium, small), align (left, center, right), color, divider
HTMLomnicore.htmlhtml, css
Cardomnicore.cardtitle, datasource, value, summary, prefix, suffix, decimals, caption, color
  • Grid: a data source's rows in a table, with a search box (every word must appear in one of the columns shown, ignoring case), sorting by heading, and pages. Clicking a row selects it and provides it as selectedRow, with its entity; the rows found are provided as rows. The search and sort work on the rows the data source returned.
  • Heading: a heading with an optional subtitle and a line under it.
  • HTML: the HTML as written. The page's security policy still applies: scripts and inline event handlers don't run, and style attributes are ignored. The css setting styles it instead, scoped to the part.
  • Card: a heading and one value, such as Sales this month and its total, with a coloured edge. summary is first (the first row's value, such as an aggregate's total), sum, average, count, min or max over the rows.

Colours are chosen in settings and applied as custom properties, which the security policy allows.