Commands

OrdinalSuffix - XpressDox

This function is used internally by XpressDox’s FormatDate function to form dates like March 3rd 2011.  The “rd” after the “3” is known as an ordinal suffix.  The function used to return this date would be «FormatDate(DateOfSignature,'MMMM o yyyy")» The template author would use the OrdinalSuffix function explicitly in order...

PaintInsertedText - XpressDox

The command searches the template for any fillpoint which directly inserts text into the assembled document, and “paints” it with the specified color.   Command structure: «PaintInsertedText(Yes,Blue)»   Examples of usage: «PaintInsertedText(Yes,Red)» «Owner» ("Owner") agrees to rent the property situated at «Property_Address» to «Renter» ("Renter") for the term of this...

The GetDataSourceData, GetXMLElementValue and GetXPathValue functions

If you need to get data from a data source and have those data available in an interview (and hence in the data set), then the commands IncludeDataSourceData and ChooseFromDataSource would be what you would use. If, while authoring the template, you come to a point where you need one...

Configuring standard folders

The Document Save Folder will be the default folder to which documents produced by running a template will be saved. When a template has been run, the user will be asked to provide a name for the document via a Save File dialog, and at that stage will be able...

Paragraph - XpressDox

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

PlaceHolder - XpressDox

Add Heading or Footing text onto the XpressDox interview «PlaceHolder(DummyDataElement)» will create an invisible control on the interview, but will enable Headings or Footings to be attached to that control. This would be used to include text into an interview screen, and in particular to include text which must appear...

Ensure your Plurals are correct - XpressDox

Ensuring that plurals are correct on your XpressDox templates Documents / Precedents often have numerous places where constructs such as “is/are” or “child/children” appear, or else the singular is always used. With document assembly, and XpressDox in particular, the template can provide instructions in conditional assembly which can insert the...

PdfUserPassword - XpressDox

Provide a password on an assembled PDF document This function gives you the ability to provide a user password to a PDF that is created by running a template. In other words, a person wanting to open the PDF file produced will have to supply the password to the application...

PositionOfRepeater - XpressDox

Please note that with effect from version 11.3, this function has been superseded by the RepeaterPosition function. For backward compatibility the use of PositionOfRepeater is supported, but is discouraged. Consider the commands OnExitSet and OnEnterSet. These commands are only executed during the lifetime of the interview, and also contain conditions...

The Command Editor - XpressDox

The Command Editor empowers the template author by presenting an alphabetic list of all the XpressDox commands, with functionality which provides wizards for completion of the command as well as supplying examples of commands.

PrefixWith - XpressDox

PrefixWith This function is particularly useful in the situation where, say, you have an address consisting of data elements AddressLine1, AddressLine2, AddressLine3, and AddressLine4, but that perhaps lines 2, 3 and 4 are empty.  Further, you want to present the address in a single line, with the different AddressLine data elements separated by commas. You...

Document per Repeated Item (new style)

Problem Statement Suppose you have an application which requires that one or more parties sign a suretyship document, with the requirement that each party signs their own document, not that they all sign the same document. The first thing to do is set up the suretyship template, with the relevant...

Validating a NINO using the Rule command

The XpressDox Rule command can be used to validate a NINO in a template.   You have a template which needs to capture and use a NINO (National Insurance Number) as described in NIM39110 – National Insurance Numbers. You would like to make sure that the value captured in the...

Run a "mail merge"

Use one template to generate a letter to each of a set of clients whose contact details are saved in a database.

PreviewHighlight - XpressDox

The command searches the template for any fillpoint which directly inserts text into the previewed document, and “paints” it with the specified color.   Command structure: This command takes one argument, which is a colour. For example «PreviewHighlight(Green)»   The result will be that all text inserted by XpressDox fillpoints...

RaiseToPower - XpressDox

This function can be used in more advanced arithmetic calculations, such as: If the side of a square is «Side» then the area will be «RaiseToPower(Side,2)». The second parameter does not need to be a constant or an integer, but can be a data element or other expression resulting in...

ReadOnly - XpressDox

«ReadOnly()» will cause the named data element (or list of data elements) to be shown in the interview, but their values will not be able to be changed by the user. Simple Usage This is used typically where data are supplied from a data source (maybe via a ChooseFromDataSource command)...

Conditional inclusion of paragraphs and clauses

Sometimes there are just too many choices of paragraph or clause to be included or excluded from a document. Using If and Else commands is inappropriate when there are hundreds of combinations. XpressDox has the powerful InsertDocument command to handle just this situation - where the user running the template...

RegionToX and XToRegion - XpressDox

These two functions work in tandem in those situations where calculations are to be done and the formats of the numbers involved need to be converted from regional-settings compliant format to a format where they can be used in the calculation. This latter format is referred to as “XSLT compliant”....

Define Folder Shortcuts

Suppose you have defined a set of folders to contain clauses for insertion using the My Clauses or Shared Clauses features in the XpressDox ribbon.  Normally you would group clauses together into folders containing clauses for similar uses.  For example, they might be “Contracts”, “Notices”, “Letters”, etc. In some cases...

RemoveColumnIf - XpressDox

Remove a table column in your XpressDox template if a certain condition is true. It is almost impossible to think of a way to tell XpressDox to include a column in a Word table using «If(condition)» and «End()» to delimit the column boundaries. Now it is a straightforward process of putting the...

RenderAsNumeric - XpressDox

The calculation features of XpressDox require that values conform to a specific format. This format permits numeric digits, an optional leading sign (+ or -) and an optional decimal point. Thousands separators, spaces and other such characters are not permitted. The RenderAsNumeric function assists with this.

RepeatWhile - XpressDox

Repeating information which is not in the form of repeating data in XML (i.e. multiple same-named XML elements) can be handled using the RepeatWhile command. An example of the kind of repeating data that would need a RepeatWhile would be a data element that contains a comma-delimited list of directors...

RepeaterCaption - XpressDox

With this command the template author can provide a caption on the interview for a repeater. Command structure: «RepeaterCaption(Child,Details of the Children)»   Desktop vs browser: In the desktop version of XpressDox, this applies only to repeaters which are captured in a grid, but in the browser (cloud version), it will always apply no...

RepeaterPosition - XpressDox

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