Input Fields tab
The input fields are used to specify the table fields or program scripts whose values must appear in the report. All variables used in the report must be defined as input fields.
The tab displays a list of all the input fields of the current report.
In the Input Fields list, you can add or remove input fields and change their sort mode. You can insert all fields of a table definition using the command.
To determine the sort sequence, change the order of the input fields by moving them up or down the list.
When changing the field order, the following constraints prevail:
- You can only change the sort sequence of the sorted input fields (with the sort mode equal to Presorted, Ascending or Descending).
- The options to change the field order are disabled for non-sorted fields (with the sort mode equal to No sorting).
- Sorted fields always precede non-sorted fields.
For more information, see Input Field shortcut menu.
Add and remove input fields
To add an input field:
- Click Input Fields list and, on the shortcut menu, select . . Alternatively, right-click in the
-
Specify the Field Name of the new input field. Specify either the name of an external variable of the report script, or the name of a table field. To select a table field, press . In the select dialog box, choose a table and a field.
- Specify the Depth (only non-table fields).
- Specify the field Domain (only non-table fields). Press and select a domain from the development repository.
- When you finished adding input fields, refresh the Input Fields list, so the new fields are displayed at the appropriate positions. Right-click in the Input Fields list and, on the shortcut menu, select .
For details, see the field help.
To remove an input field, right-click an input field and, on the shortcut menu, select Input Fields list and, on the shortcut menu, select .
. Then, right-click in theSort mode
The icon in front of the field name indicates the sort mode of the input field. The following icons are used:
![]() |
No sorting |
![]() |
Ascending |
![]() |
Descending |
![]() |
Presorted |
If at least one input field of a report has sort mode Ascending or Descending, the report will sort the sent data before printing it. If you are sure the sent data is presorted, use sort mode Presorted, because the sort by the report is time-consuming.
Sorted fields must have a Depth of 0 or 1, and non-sorted fields can have greater depth values. If you change the Depth of a sorted field to a value greater than 1, the sort mode of the field automatically changes to No sorting. This means that the sorted field becomes a non-sorted field.
Sort sequence
The position of a field in the Input Fields list determines the sort sequence. The field at the top of the list has sort sequence 1, the second field has sort sequence 2, and so on.
When you print a report, the sent data is sorted first on the input field with sort sequence 1, then on the input field with sort sequence 2, and so on.
For example, if you want to sort addresses first by city and then by street, place city at the top of the list (sort sequence 1) and street on the second position in the list (sort sequence 2).
To move fields up and down the list, use
and .- You can only move fields with sort mode Ascending, Descending, or Presorted. Non-sorted fields have sort sequence 99 and are always displayed at the bottom of the list.
- The sort sequence number is not displayed in the Input Fields list. To view this number, go to the editor's TDE Documentation tab. If this tab is not displayed, enable the corresponding preference setting in the Preferences - Multipage dialog box and restart the Report Editor.
- Input Fields
-
- Field Name
- The name of the variable sent by the program script to the report. This variable can be a table field (like maitm001.item). It can be a variable defined in your program script. This variable must be a global defined variable, type 'extern'.
- Depth
- When the report input variable is an array, this field contains the depth of the array. If the report input variable is a table field, you cannot change its depth.
- Domain
- The domain of the report input field.