XpressDox Help

The DetectLongConditions Command

How will I know when to use this command? Particularly with long templates with lots of conditional logic, you can get one or both of the following situations: either the interview responsiveness is very sluggish, and/or you get an “Out of Memory” exception being thrown by the system. What is going on under the hood? […]

go to article

The InterviewTheme Command

The Desktop interview is, as of Version 12.0, available in 3 different themes, viz. Classic, Blue and White. The InterviewTheme command gives you control of this. It’s pretty simple: «InterviewTheme(White)» This selects, you guessed it, the White theme.

go to article

The ChooseFromDataset Command

We have a ChooseFromRepeatingData command (which is the same as ChooseFromData, but is a more descriptive name), and a ChooseFromDataElements command. The ChooseFromDataset command combines the functionality of the other two, and adds some more flexibility. The first argument is the name of the data element to be chosen. This is as per convention. The […]

go to article

The YearsMonthsDaysBetween Function

As its name suggests, this function takes two dates as arguments and returns the difference as a number of years, months and days. It is not the same as combining the results of the MonthsBetween and DaysBetween functions together with the YearsBetween function. The simplest form takes only the starting date and ending date as […]

go to article

The RepeaterPosition Function

Consider the commands OnExitSet and OnEnterSet. These commands are only executed during the lifetime of the interview, and also contain conditions which need to be evaluated when the user navigates through the interview. Also consider the case where you would like certain actions to take place depending on the position of the current repeater. For […]

go to article

The Value Function

This function is usually used inside Scripts, when you want to use a script as a function inside another command. The function returns exactly what it is passed, as in: «Script(DemoValue)»«Value('This is what will be returned by the function')»«ScriptEnd()» The use of this script “as a function” would be something like «If(A = DemoValue())»Data Element […]

go to article

The Execute Function

Execute is used when a sequence of functions need to be executed one after the other. It is typically of assistance in the HotDocs® converter. Here is an (admittedly artificial, but useful for illustration) example: «OnExitSet(Name,Number,Value,(),Execute(SetV('X',12),IncrementV('X'),GetV('X')),,EvenWhenNotEmpty)» After the focus leaves the Name field, the Number data element will have its value set to 13.

go to article

The Paragraph Command

«Paragraph()» will split a paragraph into two. Providing the name of a Word style, such as «Paragraph(ThisStyle)» will result in the second paragraph resulting from the split having style ThisStyle applied to it.

go to article

The Mod Function

Mod is used to get the remainder when dividing one number by another. It is typically used to divide sets of items into odd and even, or in a Rule. For example: «ForEach(Parent)» «Name» «End()» «Rule(Parent,hard,(count(Parent) mod 2) = 0,'Please enter an even number of parents.')»

go to article

The HideFromPreview Command

By default, when the user selects to preview the results of an assembly (during the Interview process), the system will display the document generated by the template itself, and any document generated by the MergeTemplate function. Sometimes, the template author may want to restrict the preview functionality to specific templates. In this case, including the […]

go to article