Configuration: Templates¶
A template is the layout a logbook is filled in: one or more tables, each with its columns, rows and cells. Logbooks are made from templates (see Configuration: Logbooks), and several logbooks can use the same template.
To open it, choose Configuration → Templates in the Logbooks menu. You need engineering access to see Configuration.
The Templates page¶
The page lists every template with its name and document number.
- Search by name or document number.
- Create template opens the template editor.
- Each row's menu has Edit and Delete. Delete asks you to confirm first. A template that a logbook uses can't be deleted: delete or change that logbook first.
Creating or editing a template¶
Click Create template, or Edit on a row. The editor has three parts, then Create (or Save when editing) at the bottom.
Basic details and document details¶
- Name (required) and Description.
- Document details: Document number (required), Version number, Version date, Issue number and Issue date: the document control details printed on the logbook's PDF.
Tables¶
A template needs at least one table. Click Add table and fill in its settings:
- Table name (required): shown above the table. Each table of a template needs its own name.
- Table type:
- Static: the rows you set up here are the rows makers fill in.
- Dynamic: you set up one model row; makers add more rows like it while filling.
- Sticky columns: keeps the first columns in place when the table scrolls sideways. Choose how many.
- Column totals: adds a last row with the Sum or Average of the columns you pick. It is worked out when the logbook is saved.
- Table summary: adds a summary table that groups the rows and works out totals for each group. Choose the Direction (by columns or by rows), the Group by columns (rows with the same values there form one group) and the columns to Work out with Sum, Average, Count, Maximum or Minimum.
Column totals and the table summary pick from the table's columns, so add the columns first and then open Table settings again to set them up.
Each table has Table settings to change these later and Delete table to remove it.
Columns, rows and cells¶
Inside a table:
- Add column adds a column; you can rename or delete a column. When you delete a column, its cells are removed from every row, and totals and the summary stay on the right columns.
- Add row adds a row (in a dynamic table there is only the one model row).
- The + at the end of a row adds a cell to it. Click a cell to change it, or clear it. Clearing a cell leaves the other cells in their columns.
Each cell is one of three kinds:
- Static: fixed text that is always the same, for example a label.
- Input: a value the maker enters. See Input types below.
- Filled automatically: a value the system works out or looks up. See Automatic types below.
The cell form tells you what is still missing for the kind you chose, and won't save a cell that isn't fully set up.
Input types¶
| Type | What the maker does |
|---|---|
| Text | Types free text. |
| List | Picks one value from a list. |
| Dependent list | Picks one value from a list whose choices depend on another column of the same row. |
| Tick | Ticks a box (yes / no). |
| Date | Picks or types a date. |
| Time | Picks or types a time. |
| Date & time | Picks or types a date and a time in one field. |
| QR code | Scans a QR code with the device camera. |
| Image to text | Takes or uploads a picture; the text in it is read out. |
| Image | Takes or uploads a picture. |
Automatic types¶
| Type | What it fills in |
|---|---|
| Reference sheet value | Looks up a value in a reference sheet, using one column of the row as the key. |
| Reference sheet value (several keys) | The same, with a key built from several columns, written as in the sheet, for example C1-C2. |
| Equation | Works out a value from other columns of the row, for example (C2 + C3) / 2. |
| Equation by rule | Picks the equation by the values in other columns: you list the columns to watch, then rules (the values to match and the equation to use). The first matching rule is used, otherwise the default equation. |
| Date & time equation | Works out a date or time from other columns, for example C3 - C2 for the time between them, shown in days, hours and minutes (negative when the second is earlier). |
| Parameter | The current value of a machine parameter, taken when the maker clicks Capture. |
| Dependent parameter | The current value of a parameter picked through a query map from other columns of the row. |
| Fill time / Submission time / Creation time / Current time | When the row was filled, when the logbook was saved, when the entry was created, or the time when the logbook is opened. You choose the format. |
| Date offset / Time offset | Today's date moved by a number of days, or the current time moved by a number of minutes (a minus sign goes back). |
In an equation, C1, C2, … stand for the values of the row's columns. A column at or after the cell itself can't be used.
Extra cell options¶
- Fill only once (reference sheet values): once a value is found for a key in a logbook entry, it is kept even if the reference sheet changes later.
- Write to a reference sheet: when the logbook is saved, the cell's value is also written to a reference sheet row, found by one or several key columns.
- Open only in shift windows: makers can change the cell only during the shift windows you add, and on the days you choose.
Saving¶
Create (or Save) checks the whole template: it needs a name, a document number and at least one table, and every table needs at least one column. Saving an edit changes the template for entries issued from then on; entries already issued keep the tables they were issued with.