Script Fields

You can use scripts that have been created previously in a new script. The previously created script is calculated or resolved as part of your script code.

In the following image, the Script Fields category has been expanded and shows some example script fields that have been used elsewhere in this guide. The inUSD script has been selected and is subsequently displayed in the Script Code sheet.

In this example, the US dollar value is required to be printed as part of a string.

There is no need to perform the exchange rate calculation in the current script, as it is performed by the inUSD script and the result is converted to a character string in the current script by applying the currencyFormat method.

Script fields are designated by the at sign (@) prefix and the brace symbols (that is, the { and } symbols, sometimes know as curly brackets) that enclose them, as shown in the example.

{@addresses}

For details about creating script fields, see "Using the Script Sheet" under "Using the Catalog of Available Fields Dialog", in Chapter 4.