Horizon Support
Contents

Configure › Setting up

Placeholders at a glance

A placeholder stands in curly braces in your Word file. Horizon puts the value of the record there. The first character says what happens.

The examples belong to a work order. The Placeholders column under Configuration → Rules and reporting → Documents shows which placeholders your template accepts.

Fields

  • {Name} inserts the value of the field. Write the name as it appears in the form.
  • {Room.Building} inserts a field of the linked record, here the building of the room.

Paragraph only with a value

  • {+Remark} prints nothing itself. If the remark is empty, the paragraph or table row is left out.

Lists in tables

  • {#Defects}{Name} {Deadline}{/Defects} in a table row repeats the row for each defect. Between start and end, the fields of the defect apply.
  • {#Records}{Name} {Status}{/Records} repeats the row for each record when you create the document from a list. The Placeholders column shows the German word {#Datensätze}{Name}{/Datensätze}; both work.

A list has at most 200 rows. It only works inside a table.

Images

  • {%Signature} inserts the picture from an image field.
  • {%brand.logo} inserts your organisation's logo, {brand.sender} the sender line and {brand.footer} the footer.

Figures and charts across several records

  • {=Count} counts the records.
  • {=Sum(Hours)}, {=Average(Hours)}, {=Min(Hours)} and {=Max(Hours)} calculate over a number field. Amounts of money are not possible, because they can be in different currencies.
  • {=Share(Fixed)} gives the share of “Yes” in a yes/no field.
  • {%Bar(Status)} and {%Pie(Status)} draw a chart by status.
  • {%Bar(Status; Sum(Hours))} draws the sum instead of the count.

Reports that ask first

  • {?Room} asks for a room when the report is created, {?Due on} for a period. The report then only contains what matches.