Formatting for record fields

Chapter 25 of 25

Field types:

If you want to give input fields, i.e. text entry fields, a type, e.g. to create a date field, you can simply control this via the field name. You add a vertical bar at the end (“|”, called a “pipe”) followed by a letter.

  • Feldname|l -> creates a field with a button for opening a link.
  • Feldname|d -> creates a date field with a mini calendar
  • Feldname|t -> creates a phone field with a clickable receiver icon. If a field name contains the word part “tel”, this happens automatically.
  • Feldname|f -> creates a fax field with a clickable icon for sending faxes.
  • Feldname|rx -> prevents a type from being assigned, e.g. if the field name contains the string “tel” but is not a phone field.

Field calculations:

You can carry out calculations with a column in the table view. If a calculation is configured, it is shown in an extra row at the bottom.

The following use cases are possible:

  • Feldname|a -> turns the field into an average field and calculates the average in the table view.
  • Feldname|s -> turns the field into a sum field and calculates the sum in the table view.
  • Feldname|min -> finds the smallest value in the column and outputs it.
  • Feldname|max -> finds the largest value in the column and outputs it.

There are a few things to bear in mind with calculations; here are the most important:

  • empty and invalid values are replaced by 0
  • a comma “,” in the record becomes a point “.” in the table view -> because of the American notation
  • thousands separator points as in 100.000 are recognised as a wrong number and must be avoided
  • leading and trailing spaces are trimmed
  • no effect on the export function
  • the sum only covers the current page size, i.e. a maximum of 500 rows are added up
  • adding up takes the search field and the filters into account

Field formatting:

For field formatting you also use the pipe after the field name and can, for example, set the width.

  • Feldname|w100 -> assigns a fixed width in pixels to a field; this only works for input fields.
  • Feldname|v5 -> lets you force the values of a selection field (radio button or checkbox) to be distributed across a fixed number of columns.
  • Feldname|h5 -> lets you set the number after which a new row should start for radio buttons and checkboxes.
  • Feldname|rx -> prevents versioning of the values in this field. Changed values of this field do not appear in the “Versionen” (Versions) tab.

Combinations:

In principle, all options can be combined.

Examples:

  • Umsatz|s|rx -> the field Umsatz (turnover) can be added up in the table view, but changes to the field values are not saved in the Versions tab
  • Kosten|s|a|min|max -> the field Kosten (costs) shows all calculation options side by side in the table view

For a better overview, you can also combine the fields with a fixed width, for example with |w335.

Display of field names:

  • Field names may generally contain HTML formatting for the font, e.g. to use colours or bold type.
  • Multiple-selection fields without entries appear like a heading and can thus be used to structure the data further.

All chapters of the introduction guide