Parsware
All articles

Model-driven apps

Views: the lists people work in

A view is a list of a table's records, and it's where most people spend their day. Choose its columns, put them in order, give a column a width, and decide which list an app opens on.

The Assets list in dark mode on its Purchases view, with name, purchase date, cost, assigned person and in-service columns, next to the title "Views: the lists people work in"

People open a record to change it, but they find it in a list. That list is a view: which columns it shows, in what order, and what it shows first. A table can have as many views as there are ways of looking at it.

In Build your first table and view the Asset table got its first views. Here we add one for the people who buy the equipment, make it the one the app opens on, and look at what people can change for themselves. Every picture is the real product.

Columns, in order

Open the table, choose Views, and press New. Give the view a name, Purchases, and a logical name. Your publisher's prefix is added for you.

Every view starts with the table's primary column, Name. Drag fields from Available fields into View columns, and drag the chips along the row to change their order. The row of headings under the chips shows the columns as the list will.

The View Designer for Purchases: Default view ticked, and View columns holding Name, Purchase Date, Purchase Cost, Assigned To and In Service

A chip's × takes the column out of the view. The field stays on the table.

A width for a column

Select a chip and the Properties panel shows that column. Width (px) fixes its width. Leave it on Auto and the column sizes itself to what's in it. We gave Name 260 pixels, because asset names are long and it's the column people read first.

Name selected on the View columns row, with Width (px) set to 260 in the Properties panel

The same panel sets the column's header, format, control and alignment. Those have their own article, View column properties.

The default view

Tick Default view and save. A table has one default list view, so the tick moves from whichever view had it before. The Views page shows which one it is now:

The Asset table's Views page: All Assets, Purchases marked Default Yes, and Assets in Service

The default is the list a table opens on in an app. Open Assets in the Asset Tracker app and it's on Purchases:

The Assets list in the Asset Tracker app on the Purchases view: eight assets with their purchase dates, costs, who has them and whether they're in service

Switching views

The view's name under the table's name is a switcher. It lists the table's other list views, with a tick beside the one that's open:

The view switcher open under Assets, offering All Assets, Purchases (ticked) and Assets in Service

Only List views are offered here. A table's lookup and quick find views are used inside pickers and searches, so they don't appear in this list.

Which views an app offers is the app's choice, the same way it chooses its forms: its Forms and views button offers every view of the table, or only the ones you pick.

What people change for themselves

Without touching the view, anyone can sort, filter and search the list. Sort opens a panel of sort levels: here, newest purchase first.

The Sort records panel with one level: Sort by Purchase Date, Descending, and an Add sort level button

The Purchases list sorted by purchase date, newest first: iPad Air (2025/05/09) at the top, then MacBook Pro 14" and ThinkPad X1 Carbon

Add another level to break ties, and drag the levels to change which one counts first. Clicking a column heading sorts by it too, and Shift+click adds it as another level. The Columns button at the end of the header chooses which of the table's fields are shown. None of this changes the view: it's how one person is reading the list right now, and Reset in the Sort panel goes back to the view's own order.

The view as a document

A view is saved as a short document. Purchases, after the steps above:

{
  "logicalName": "con_asset_purchases",
  "displayName": "Purchases",
  "entity": "con_asset",
  "viewType": "Public",
  "columns": ["con_name", "con_purchasedate", "con_purchasecost", "con_assignedto", "con_inservice"],
  "sorts": [{ "field": "con_purchasedate", "descending": true }]
}

The columns are listed in the order they appear. sorts is the order the view opens in, which is different from a sort somebody chooses in the app: theirs lasts while they read, the view's is what everybody starts with. A view can also have a filterGroup, which decides the rows, as Filters with And and Or shows.

Kinds of view, and where each is used

"viewType": "Public" is the ordinary kind, a list people choose from the switcher. A table can have other kinds too, each used by a different part of the platform rather than shown in the switcher:

Kind Used by Read more
Public The list people work in, and the switcher under the table's name This article
Lookup The columns inside a lookup's search results Lookup views and quick find
Quick find Which fields the search box looks in Lookup views and quick find
Associated The list on another record's Related tab Lookups
Card A read-only summary, such as beside a tree Category trees
Seed data Which rows a solution carries with it Seed data that travels with a solution

They share the designer and the same idea, which fields, which rows, so learning one teaches the rest. A list view can also be laid out as a tree or a calendar, for tables whose records nest inside each other or take place at a time. Category trees and Bookings on a calendar show two of them.

A view for each question

A table is usually looked at in a few distinct ways, and each deserves its own view, named for the question it answers. For the Asset table:

View Columns Rows Order
Assets in Service Name, serial number, assigned to In Service is Yes Name
Purchases Name, purchase date, cost, assigned to All Newest purchase first
Unassigned Name, serial number, purchase date Assigned To is empty Oldest purchase first
Retired Name, purchase date, cost In Service is No Name
All Assets Everything useful All Name

Unassigned is the kind of view that changes how a team works. Instead of somebody remembering to check, there is a list that is empty when the work is done, and anyone can open it.

Name views by what they show, in a few words: Unassigned, Overdue invoices, Leads this week. The name is what appears in the switcher, and View 2 helps nobody.

Fewer columns, read faster

A list is read across, one row at a time, so every column costs the reader a glance.

  • Five to seven columns is usually right. More than that and the important ones scroll off the side on a laptop.
  • The name first, wide enough to read, as with the 260 pixels here. It is the column people look for, and it opens the record.
  • Then what distinguishes the rows for this question: the date for Purchases, the assignee for Assets in Service.
  • Leave out what every row shares. In Retired, an In Service column would say No on every line.
  • Put State in lists that mix active and inactive records, so people see at a glance which is which, in the state's own colour.

Anybody can add a column for themselves with the Columns button, so a view doesn't have to carry every field just in case.

Sorting that helps

The view's own sort should put the row people need first at the top. For work queues that is usually the oldest or the most urgent; for registers, alphabetical; for anything recent, newest first. Two levels are often worth it: due date, then priority puts today's urgent items above today's routine ones.

People can still sort differently while they read. Clicking a heading sorts by it, Shift+click adds a level, and Reset in the Sort panel goes back to the view's own order. Nothing they do changes the view for anybody else.

Searching a list

The search box above a list matches the table's main column, the name, a moment after you stop typing. It answers which one is called…?. To find records by anything else, such as a serial number, use Filter, or save a view filtered on it. The search inside a lookup is different: it looks in the table's quick find fields, which you choose, as Lookup views and quick find explains.

Views and security

A view decides what a list shows; it doesn't decide what anyone is allowed to see. Every list is filtered by the person's own role before the view's filter is applied, so a salesperson who may read only their own accounts sees only those in All Accounts too. Don't make a view to keep records away from people. Use a role, as Record access: whose records you see explains.

What's saved

A view is saved as a document and checked against the view schema, so every column has to be a field on the table. It belongs to your solution and moves with it to Test and Production.

Next: view column properties, which set how each column is shown.