Search

Script

Examples of Scripts as Functions – XpressDox

Parameterized scripts assist with the re-use of XpressDox code Here are some examples of Scripts which may be useful:   Write out a full name from individual data elements: «Script(FullName,FirstName,MiddleName,LastName)» «concat(SuffixWith(&FirstName&,’ ‘),SuffixWith(&MiddleName&,’ ‘),&LastName&)» «ScriptEnd()» The

Read More »

Script Feature – XpressDox

The «Script()» command enables the template author to give a name to a chunk of text, and to use that chunk repeatedly in a template.

The chunk of text can consist of from a few words to one or more paragraphs. This named chunk can then be inserted into the document at a number of places using the «UseScript()» command.

Read More »

SuffixWith – XpressDox

Suffix a value with another value, if the first value is not empty Whereas PrefixWith is useful for structures like addresses where usually at least the first line will have a value, SuffixWith is handy

Read More »

The concat function – XpressDox

There are times when it is necessary to concatenate the values of data elements, variables and/or hard-coded strings together to form a value which is then stored in a variable. The concat function does this.

Read More »

Multi-line fields on an XpressDox interview

You may not want to have to define 3 or 4 or some maximum number of address line data elements, and have the user capture them one at a time, and still provide conditional formatting logic to suppress any empty data elements. XpressDox document assembly supports this by the concept of long text fields.

Read More »

UseScript – XpressDox

Use the Script feature in XpressDox to create re-usable pieces of text. Or parameterize scripts in order to create your own functions. First create your script with the «Script» command, and then call that script

Read More »