Previous Topic

Next Topic

Inhoudsopgave

Book Index

Base Text Scripts

In the F0346 Base texts screen you can include a number of key words when specifying base texts. These key words allow you to run scripts and to enter data when the base texts are inserted into documents. This way, you could for instance include a template for a work description as a base text. When this template is inserted into another text, a script is run that asks the user for a number values such as the name of the employee in charge. These names are then automatically entered in the right places in the text that is inserted into the final document.

Simple Key Words In Base Texts

When the key words comply with the correct syntax, they are run when the base text, in which these instructions have been included, are inserted into documents. You can use the following key words in base texts:

Key Words To Run Scripts When Inserting Base Texts

You can use the following key word in a base text to specify that a certain routine in a script must be run when the base text containing the key word is inserted. You could use this routine to ensure that the user must answer a certain question or that he is required to enter specific data on the Memo tab.

<%script scriptlistcode="SCRIPTCODE" function="ROUTINE"%>

Explanation

%script

Instruction that specifies that a script should be run.

scriptlistcode="SCRIPTCODE"

For SCRIPTCODE enter the actual code of the script that must be run.

function="ROUTINE"%

For ROUTINE enter the script routine that must be run. This routine is part of the script entered under the script code. A routine may for instance contain the text that will be entered in this place in the document.