Example

In the following example the Text Block with label App1 is inserted in the result document. With this Text Block the field set Appealfields is associated. This field set contains the fields Date and Type.

#
BEGIN
FIELDSET Appealfields
ASSIGN Appealfields.Date := date(today)
ASSIGN Appealfields.Type := "car insurance"
TEXTBLOCK
NAME "App1"
END
#

The model developer needs to declare a FIELDSET variable with the name Appealfields because Text Block set Appeal is associated with field set Appealfields. The fields from this fieldset should be assigned a value. The Text Block is inserted in the result document using the instruction TEXTBLOCK.

The following example shows how to use the FORM construction to show a question to the user in which a Text Block can be selected. The Text Block View from which the user can select a Text Block is called Clauses. The Text Block is stored in the variable with the name selected_text_block.

#
BEGIN
TEXT selected_text_block
FORM "Select a text block"
QUESTION "Select a clause"
VIEW "Clauses"
ANSWER selected_text_block
TEXTBLOCK
VAR selected_text_block
#
END
#

The Text Block is not associated with a field set therefore no FIELDSET variable needs to be declared.