Skip to content

Build a view, step by step: columns, AND and OR, and related tables

Turn "open matters for these clients that nobody has started work on" into a list anyone can open in one click. In this guide you build that view on the Matter table, save it, narrow it on the spot and export it.

15 steps·8 min read·Customization

AND, OR and filters across related tables, with a live count, no report writer.

What a view is

  • A saved list of one table's records: its columns (in order, with widths), its filter and its default sort. People pick it from the view picker above the list.
  • The filter mixes All of (And), Any of (Or), None of and Not all of groups, nested up to ten levels deep, with a live count as you build.
  • It reaches related tables: filter matters by their client company and show the client's city as a column, or keep only the matters that have (or have no) tasks, contacts or emails.
  • You build it in the View Designer: from the View Designer button above a list, or in Builder → Views. Both are the same designer.
  • Everyone who may read the table can pick a saved view, and each person sees only the records they may see.

Good to know

  • A view keeps one row per record. A table that points to the record (its tasks, its contacts) only decides which records stay. For one row per task with its matter, use the Query Builder and start from Task.
  • A related table can be up to four steps away from the main one.
  • Anyone can narrow a list for themselves with Filter without changing the view, and Export to Excel takes exactly what is on screen.

Before you start

  • You need to be allowed to create and change views: Global Administrators are; other roles need the view operations in Builder → Roles. Without them, the View Designer button does not show.
  • We build Open matters with no task yet on the Matter table: open matters for two client companies, with the client's city as a column, and only the matters nobody has opened a task on yet. It is the list a lawyer checks on Monday morning.
  • A view is shared. When you save it, everyone who may read matters can pick it, and each of them sees only the records they may see.

Part 1. Open the View Designer and start a view

1Open the table's list and press View Designer

Open the table from the left menu, here Matters. Above the list:

  • The view picker (left) switches between the table's saved views.
  • View Designer opens the designer over the list, on the view you are looking at, with any filter you typed in the list already in it.

The designer is also a page of its own: Builder → Views (next step). Both are the same designer.

Build a view with filters and related tables, step 1: Open the table's list and press View Designer (Open the designer; Switch views)
1Open the designer2Switch views

2Or go to Builder → Views and pick the table

In Builder → Views, pick the table first (Matter), then a view to change, or press New view to start one. The same bar has Clone view as and Delete view for the view that is open.

Build a view with filters and related tables, step 2: Or go to Builder → Views and pick the table (The table; A view to change; Or start a new one)
1The table2A view to change3Or start a new one

3New view: pick the type, name it, press Create

New view opens a small window:

  • Type: 1. Main is a list people pick on the table's page (what we build). 2. Lookup is what a lookup field shows when someone picks a record.
  • Name: what people see in the view picker. Start it with what it shows: Open matters with no task yet.
  • Schema name fills itself from the name. It is fixed once the view exists, so check it now.

Create makes the view at once, with one column (Name) and no filter, and opens it in the designer.

Build a view with filters and related tables, step 3: New view: pick the type, name it, press Create (Main or Lookup; What people see; Fixed after creation; Makes the view)
1Main or Lookup2What people see3Fixed after creation4Makes the view

Part 2. Name, sort and default

4Name, default sort, and whether it is the default view

The top card of the designer:

  • View name: rename the view at any time.
  • Default sort: the column the list sorts by when it opens, and Asc or Desc. People can still click a column header to sort differently for themselves.
  • Default view: the view the table opens on, for everyone. A table has exactly one. Leave it off for a view like this one, which is for a single job.
Build a view with filters and related tables, step 4: Name, default sort, and whether it is the default view (Its name; Sort column; Ascending or descending; Opens first, for everyone)
1Its name2Sort column3Ascending or descending4Opens first, for everyone

Part 3. Build the filter

The Filter panel on the right holds conditions (a field, an operator, a value), groups that join them with AND or OR, and related tables. The sentence at the bottom reads the filter back in words, with the number of records it matches right now.

5Add conditions: a field, an operator, a value

Press Add filter for each condition, then pick:

  • the field: any field of the table, and of each related table you add (step 7);
  • the operator: the list fits the field. Text has Contains, Starts with, Ends with, Equals, Not equals, Is blank, Is not blank. Numbers have Equals, Greater than, Less than, Greater or equal, Less or equal and Between; dates have On, Before, After, On or after and Between; a yes/no field has Is true and Is false; a lookup has Name contains and Name starts with; a choice field has Equals and Not equals. Every field also has Is blank and Is not blank;
  • the value.

Our view starts with State Is true (open records only), then two name conditions: Name Contains Larkspur and Name Contains Harbor Glen. A date you type is compared in your own time zone, so the view means the same moment for everyone.

Build a view with filters and related tables, step 5: Add conditions: a field, an operator, a value (The field; Operators for this field; The value; One more condition)
1The field2Operators for this field3The value4One more condition

6Mix AND and OR with groups

Each group starts with how its lines join:

  • All of (And): every line must hold.
  • Any of (Or): one line is enough.
  • None of: no line may hold.
  • Not all of: at least one line fails.

Press Add group to put a group inside a group. Our two name conditions sit in an Any of (Or) group, inside All of (And) with State Is true: open, and for either client. The X on a group's line removes the group.

Build a view with filters and related tables, step 6: Mix AND and OR with groups (How the lines join; One line is enough; A group inside a group)
1How the lines join2One line is enough3A group inside a group

7Add a related table

Open Add a related table under the conditions. It offers two kinds:

  • From each Matter, look up its…: a lookup going out, such as the matter's Account (the client company). Its fields become fields you can filter on, and columns you can show.
  • Records that point to this Matter: records that hold the matter, such as its tasks or its matter contacts. They only decide which matters stay: those that have one, or those that have none.

Pick Account and press Add. Then open the list again, scroll down to Task (Regarding Record ID), pick it, and press Add.

Build a view with filters and related tables, step 7: Add a related table (Lookups going out; The client company; Records about the matter; Add the table)
1Lookups going out2The client company3Records about the matter4Add the table

8The Account card: keep every matter, or only those that have one

Each related table gets a card. The badge beside its name says which field joins it: here the matter's Account field. Under More options:

  • Every matters keeps a matter with no client; its client columns stay blank. Pick it when the client is just extra information, as here.
  • Only matters that have one drops a matter with no client, or with a client you may not see.

Press Add filter inside the card to filter on the client itself (Address City Equals Larkspur Falls). A filter here keeps only the matters whose client matches.

Build a view with filters and related tables, step 8: The Account card: keep every matter, or only those that have one (Keep every matter; Only those with a client; Filter on the client)
1Keep every matter2Only those with a client3Filter on the client

9The Task card: only matters with no tasks, and the live count

A table that points to the matter shows two choices:

  • Only matters that have tasks: "has one".
  • Only matters with no tasks: "has none". Pick this one.

To count only some tasks (for example open ones), press Add filter in the card: then a matter with only closed tasks counts as having none.

Under the filter, Codossier Office reads it back in words and shows Matches 1 record right now (by now only one of the matters has no task). The count runs as you: someone who sees fewer matters gets fewer. The sentence does not mention the related tables, so check their cards.

Build a view with filters and related tables, step 9: The Task card: only matters with no tasks, and the live count (Has none; Has one; Which tasks count; Live count)
1Has none2Has one3Which tasks count4Live count

Part 4. Choose the columns

10Pick the columns, including the client's city

In Columns, Available fields lists the table's fields, then the fields of each related table you added, named with the table in brackets: Address City (Account). Type in Find a field to narrow the list.

Click a field and press > (or double-click it) to move it into In view. < takes the selected column out again.

Build a view with filters and related tables, step 10: Pick the columns, including the client's city (Find a field; A field of the client; Move it into the view)
1Find a field2A field of the client3Move it into the view

11Put the columns in order and size them

In In view, click a column and press the up and down arrows to move it. The three boxes on each line set its width: 1×, 2× or 3× share of the grid. Up to 15 units fit the screen with no sideways scroll; the counter shows where you are (here 14 / 15 units).

Our order: Name (3×), Record Number, Account (3×), Address City (Account), Status and Created On; the other four at 2×.

Build a view with filters and related tables, step 11: Put the columns in order and size them (Select a column; Move it up or down; Its width; Fits the screen)
1Select a column2Move it up or down3Its width4Fits the screen

Part 5. Save it, use it, share it

12Save, or clone it into a new view

As soon as you change something, Unsaved changes shows. Save stores the view for everyone; Reset throws your changes away. Switching to another view, or closing the designer you opened from a list, with unsaved changes asks first.

Clone view as copies the open view (columns, filter, sort) into a new one named … - Cloned and opens it: rename it and change what differs. It is the quickest way to make "the same list, for another client". Delete view removes a view for everyone; the table's default view cannot be deleted.

Build a view with filters and related tables, step 12: Save, or clone it into a new view (Something changed; Store it for everyone; Throw changes away; Copy into a new view)
1Something changed2Store it for everyone3Throw changes away4Copy into a new view

13Open it from the Matter list

Back on Matters, open the view picker and pick Open matters with no task yet. The list shows the client's city as a column, and only the open matters with no task: by now just Employment Review. The others already have a task, so they are not there.

Everyone who may read matters can pick the view. Each person sees only the matters they may see, so two people can get different rows from the same view.

Build a view with filters and related tables, step 13: Open it from the Matter list (Pick the view; The client's city; One matter left)
1Pick the view2The client's city3One matter left

14Narrow it on the spot with Filter

Anyone can narrow a list for themselves without changing the view. Press Filter above the list: the same editor opens, with conditions, groups and related tables. The view's own filter stays applied underneath.

Here: Add a related table → Account → Add, then Add filter in the Account card: Account Name Contains Harbor. Press Apply and only the matters of clients whose name contains Harbor are left. Clear all removes your filter and the view's, and shows every record you may see.

Build a view with filters and related tables, step 14: Narrow it on the spot with Filter (Open the filter; Filter on the client; Account Name contains Harbor; Narrow the list)
1Open the filter2Filter on the client3Account Name contains Harbor4Narrow the list

15Export what you see to Excel

Export to Excel saves the list exactly as it is on screen: the view, your own filter, the columns in their order, and your sort, with dates in your time zone. Lookups come out as names and choices as their labels. Export All saves every column of the table, for the rows of its default view, as a CSV file with raw values.

Each button shows only to people whose role allows exporting, and Codossier Office can tell your administrator about each export by email.

Build a view with filters and related tables, step 15: Export what you see to Excel (The list as on screen; Every column, raw)
1The list as on screen2Every column, raw

What next

  • Need totals by group, or one row per task with its matter's name? Use the Query Builder and start from the table you want one row of. It can publish its list as a view too.
  • Put a view on a form as a subgrid: see Forms.
  • A workflow's Query step can read through a saved view: see Build your first workflow.