Concepts

Views

Searchable, sortable tables over one perspective, with columns, a filter and a default sort.

A view is a searchable, sortable table over the entities of one perspective: its columns, an optional fixed filter and a default sort. Views are how people find entities in the portal, what sub-grids and lookups list, and one of the kinds of dashboard data source.

What a view has

json
{
  "displayName": "Customers by credit",
  "perspective": "Customer",
  "columns": ["accountNumber", { "field": "lastName", "label": "Surname" }, "creditLimit", "_created"],
  "filter": "creditLimit > 0",
  "order": "-creditLimit",
  "pageSize": 50
}
Property
perspectiveRequired. Stored by id, so renaming the perspective doesn't break the view.
columnsRequired. 1–100 fields of the perspective (or _created / _modified), each with an optional label.
filterA fixed filter in the query language, over the perspective's fields.
orderThe default sort, such as -creditLimit, lastName.
pageSize1–1,000 rows a page.

A column's heading is its label, or else the field's display name.

Searching

A view's rows can be searched with words: every word must appear, ignoring case, in at least one of the view's Text columns. smith leeds finds rows with smith in one Text column and leeds in the same or another. A view with no Text columns can't be searched. This is the search box in the portal's header.

Relationship columns

A column that holds a relationship's reference field (such as manager on Staff) shows the name of the entity it refers to: its first three Text fields that have a value, joined with ·. The id stays in the column; the name comes with each row in _display. If the reader can't see the referred-to perspective, the name is empty.

After a schema change

A perspective can change after a view is saved, for example a field it shows is removed. A view reports its problems against the current schema whenever it's read, and a view with problems doesn't run (its rows are a 409 View out of date) until it's saved again. The maker site shows the problems in place of the table.

Permissions

Anyone who can Read a view's perspective can see the view and its rows. Making, changing or deleting one needs Manage on the perspective.