13. Text Output

If you wish to print out the contents of a table, you must first create a text output for it. To do this, follow these steps:
Hide the columns you want to exclude from the output (using the Displayed Columns section of the context menu). It is recommended to include only some columns in the output so that they fit on the page. For example, hide the Order column for the cd_list table.
Unfold the Outputs section in the left pane of the document main window.
With the mouse, drag the cd_list item from the Data section in the left pane of the document main window to the Outputs section. This creates a new text output. You can also copy and paste the item to the Outputs section by the Ctrl+C/Ctrl+V keys.
Use file Examples\Chapter 10.s-d to try out this feature.
The output behaves in a similar way to a stored view – if you modify the source table, the output is automatically recalculated, too. If you create the output from a view, or if there is a local view applied to the source table, the contents of the table in the output will correspond to the view. Modifications or removal of the source view do not affect the output appearance.
Output appearance is determined by a template that is created in the Output Templates document section. If required, you can modify the template to change the output appearance. You can also create a new template from scratch. However, the method described above is the most straightforward.
You can also create an output template by the Create Output Template…command in the table context menu.
If you need to preserve the current state of the output text, simply copy the respective item from the Outputs section to the Data section. The text thus saved can be modified as required. You can also create a one-off output without the need for a template by the Create Output Text…command in table context menu. The text thus saved does not change when you modify the source table data.
You can also create a text representation of a table by selecting the required table rows and copying them to a rich text editor. A rich text editor is created either by creating a new item of the Formatted text type in the Data section or by creating a new document of the Formatted Text type (File|New|Formatted Text menu command).

Further Information

The following chapters of the Reference Guide contain detailed information on the discussed topic:
Enkidu Output Templates – language used for the definition of output templates