Template Editor Description

A report template is an assembly of structure and data elements.

A template is created in the Template Editor.



Table 1. Description
Top Bar
Contains the following commands:
Save: Stores the template in the database even if it contains errors.
Note: If you leave the template editor without saving your current template, an autosave will allow you to recover your work the next time the editor is opened.
Undo: Reverses the last action done on an element. Actions can be a creation, a deletion, a move, and a renaming.
Redo: Recovers an undone action.
Template Tab
Contains two areas and an access to statistics:
  • Work Area: Contains the structure of the template created or under development.

    You can drop data and structure elements into this area to build your template.

    The following icons can be added as context in the top of concerned areas:

    • : Indicates that a condition is associated with the element. You can enter the condition in the Condition field.
    • : Indicates that a comment is associated with the element. You can enter the comment in the Comments field. The comment details are displayed in the element tooltip.
    • : Indicates that the Loop when empty option is associated with the data element.
    • : Indicates that an element is in error.

      The details of the error are displayed in the element tooltip. An error can be:

      • A missing or incompatible receiver
      • A missing method
      In the fields of the Properties tab, you can only find suitable values to correct elements in error.
      Note: Correct these errors to generate reports.

    Some shortcut menus are available in this area. For more information, see Template Editor Commands.

  • Minimap: Helps you locate yourself in the template. Errors are highlighted using a red bar in the minimap.
  • Statistics: Helps you understand quickly the size of a template and the loaded data model. The number of nodes of the template is displayed at the bottom of the Templates Editor work area.

    Double-click this number to open the Statistics dialog box. For more information, see Statistics.

Preview Tab
Lets you visualize the future report.
See Previewing Reports.
OTScript Tab
Lets you define some OTScript code.
See Defining OTScript Methods in Templates.
Structures Tab
Lists available structure elements.
See About Structure Elements Tab.
Data Tab
Lists available data.
See About Data Tab.
Properties Tab
Lets you:
Note: Available input types are listed in Type when you click anywhere in the background of the Templates Editor work area. For more information concerning the configuration of these types, see Configuring Input Types.