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 SuffixWith() functions will ensure that the names are suffixed with spaces only if those data...

Show the result of Date arithmetic in the interview

When entering dates for a contract, it is important to get them right during the interview. It might be possible to control this via the Rule command, but often it is very useful to reflect this to the user as they are typing into the interview. For the purposes of...

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...

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 for the case of parts of a name, where sometimes the first one or two...

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.

Suppressing empty lines in your assembled document - XpressDox

Conditional processing is one of the most powerful features of XpressDox Docussembly™. In particular, this applies to removing empty lines from a merged document. One application of this is removing address lines which contain empty data.

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...

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 with the «UseScript» command. For more information, click here.
Loading...