Structure Elements Nesting Rules
A structure element can only be inserted in an appropriate structure element. The
following table describes the insertion rules:
Structure Element |
Can be inserted in |
Section |
Template, Section |
Section Title |
Section |
Paragraph |
Template, Section, List Item, Cell, and Header Cell |
Table |
Template, Section |
Row |
Table |
Header Row |
Table |
Cell |
Row |
Header Cell |
Header Row |
List |
Template, Section, List Item, Cell, and Header Cell |
List Item |
List |
Hyperlink |
Paragraph, Section Title, Cell, Header Cell, and List
Item |
Anchor |
Paragraph, Section Title, and List Item |
Template Text |
Section Title, Paragraph, Cell, Header Cell, Hyperlink |
OTScript Code |
Section Title, Paragraph, Cell, Header Cell, Hyperlink |
Data Elements Nesting Rules
A data element can only be inserted in an appropriate structure element. The following
table describes the insertion rules:
Data Element |
Can be inserted in |
Loop |
Template, Section, Paragraph, List, List Item, Table, Header
Row, Header Cell, Row, Cell, and Hyperlink |
Data Text |
Section Title, Paragraph, Cell, Header Cell, and
Hyperlink |
Image |
Section Title, Paragraph, Cell, Header Cell, and
Hyperlink |
File Attachment |
Section Title, Paragraph, Cell, Header Cell, and
Hyperlink |
Instructions Nesting Rules
An instruction can only be inserted in an appropriate structure element. The following
table describes the insertion rules:
Instruction |
Can be inserted in |
Set Field |
Template, Section |
Page Format |
Template, Section |
Multicolumn |
Template, Section |
Subtemplate Call |
Template, Section |
Loops
The rules for data, structure elements, and instructions presented in the tables
above, can be applied to loops depending on the type of contained elements.
Contexts and Context Calls
The rules for data, structure elements, and instructions presented in the tables
above, can be applied to contexts depending on the type of parent elements. For more
information, see this example Inserting a Context and a Context Call.
Formatting and Filtering Options
Formatting and filtering options are available for the following structure
and data elements:
Options |
Available for |
Description |
Bold, Italic, Underlined |
Text, OTScript Code |
The structure element is generated with character formatting. For an example, see Assigning Styles. |
Comments |
Section, Section Title, Paragraph, Text, List, List Item, Table,
Header Row, Header Cell, Row, Cell, Context, Hyperlink, OTScript Code, Set Field,
Page Format, Multicolumn, Subtemplate Call, Text Data, Loop, Image, and File
Attachment |
The structure element or data can have additional information
provided in the Comments field. For an
example, see Setting Columns Widths. |
Condition |
Section, Section Title, Paragraph, Text, List, List Item, Table,
Header Row, Header Cell, Row, Cell, Context, Hyperlink, OTScript Code, Set Field,
Page Format, Multicolumn, Subtemplate Call, Text Data, Loop, Image, and File
Attachment |
The structure element or data is filtered according to a specific criteria, which corresponds to
a test written in OTScript. For an example, see Filtering Structure Elements and Data. |
Ignore when empty |
List, Table, Section, and Row |
Depending on parameters and data:
- If a descendant structure of the structure element is generated, the
structure element is generated.
- If no descendant structure is generated, the structure element is not
generated.
For an example, see Ignoring Structure Content. |
List Type |
List |
A list can be a bulleted list or a numbered list. By default,
the list is a bulleted list. |
Loop separator |
Loop |
The default loop separator can be replaced by a separator
string. |
Loop when empty |
Loop |
The content of a loop is displayed in a report even if the contained methods do not provide
results. For an example, see Inserting Terminal Data and Loops. |
Reverse order |
Loop |
If the Sort attribute option is
selected, the elements are displayed in the reverse order according to the sort
criterion, otherwise the elements are displayed in the reverse order as they are
in the system. |
Sort attribute |
Loop |
If a sort attribute is selected, the elements are sorted and
displayed in the order of the selected attribute, otherwise they are displayed in
the same order as they are in the system. |
Style |
Section, Section Title, Paragraph, List, List Item, Table,
Header Row, Header Cell, Row, Cell, Context, and Hyperlink |
The structure element is generated with the style formatting.
For table style, you have to define your own style and not reuse a predefined style. For an example, see Assigning Styles. |
|