Mitech Preloader

Most Often Used Commands

User Reference

Most Often Used Commands

Learning XpressDox is a bit like learning a new language. It takes a little practice (and patience) to become fluent. The great news is that in this language, you only need about 25 words (commands) to speak the language!

Here are a few of the most often used commands:

Command Name

Caption

Description and Examples

Set the caption for the data element on the interview screen
«Caption(Amount,Capital amount of loan)»

Places a control for the data element on the interview screen
«CaptureDataElement(Name)»

Specify whether a repeater should be displayed in a grid on the interview
«CaptureInGrid(Child,Yes)»

Convert to UPPER case «ToUpper(Name)»
Convert to lower case «ToLower(Name)»
Convert to Sentence case «ToSentence(Surname)»
Convert to Title Case «ToTitle(BookTitle)»

Choose a value using a check box
«ChooseUsingCheckBox(IsBeneficiary,Y,N,N)»

Provide a comment inside the template which is not visible on either the interview or the assembled document
«Comment(A note reminding the template author)»

Define the interview properties of a data element
«Define(Title,^biu^@Red@Title of the party,|^b^@Navy@PARTY DETAILS,,Contact Information,ChooseFromList,;Mr.;Mrs.;Ms.;Dr.;Prof.)»

Convert a numeric value into the Dollar currency
«Dollars(Price)»

Repeat text and data elements for a number of data elements
«ForEach(Party)»
«FirstName» «LastName»
«End()»

Format a field as a date and/or time.
«FormatDate(Date_of_Birth,'yyyy/MM/dd')»

Define a number format according to the user’s region
«FormatNumber(Amount)»

Place heading text above a data element in the interview, and footing text below a data element.
«Heading(CompanyName,|^bu^@Navy@COMPANY DETAILS)»
«Footing(CompanyName, )»

If

Conditionally include or exclude text into the document
«If(Answer = 'No')»text when Answer is 'No'«End(If)»

«If(Answer = 'Yes')»text when Answer is 'Yes'«Else()»text when Answer is not 'Yes'«End(If)»

«If((Answer = 'Yes') or (Answer = 'Maybe') and (Amount > 500))»«End()»

Include a different template as part of this template
«IncludeTemplate(SignatoryBlock)»

Insert text which was captured as long text
«InsertFormattedText(Address)»

Lists

Drop down list:
«ChooseFromList(Province,Ontario,Quebec,British Columbia,Alberta,Manitoba,Saskatchewan,Nova Scotia,New Brunswick,Newfoundland and Labrador,Prince Edward Island)»

Samples, along with option for user to type their own:
«ChooseFromSamples(Title,,Mr.,Mrs.,Miss,Ms.,Prof.,Dr.)»

Radio button list:
«ChooseFromRDBList(PartyType,Plaintiff,Defendant)»

Mark one or more data elements on the interview as required
«Required(AccountNumber)»

Tab

Arrange data elements in tabs on the interview
«Tab(Financial Information,Capital,InterestRate,InterestDate,AmountPaid)»

Insert the current date into the assembled document
«Today('yyyy/MM/dd')»

Set variable values in the template with SetV (or SetVr), and get the values with GetV.
«SetVr('Balance',0)»
«SetVr('Balance',GetV('Balance') + RenderAsNumeric(Amount))»
«GetV('Balance')»

Conditionally include small text values
«When(Gender = 'Male',he,she)»
«When(count(Child) = 1,child,children)»