Commands

ScriptIf - XpressDox

The XpressDox ScriptIf function First, read through the article on Scripts to familiarize yourself with that feature. Using a condition inside a parameterized script requires the use of ScriptIf rather than If. The matching End for a ScriptIf, is a ScriptIfEnd(). It is worth copying-and-pasting this example into a template...

SendAsEmail - XpressDox

Save XpressDox templates as emails This function is similar to the SaveAsEmail function, except that the XpressDox template is assembled to an email (eml) and sent directly from the web. Command structure: «SendAsEmail('jack@email.com','Information required')» SendAsEmail takes 2 parameters, the email address to whom the email should be sent and the...

SentenceGroup

Add data elements as well as trailing text to a group, so that the controls and text read like a sentence on your interview.   The effect on the interview: Instead of arranging each of the elements underneath each other on the interview, the SentenceGroup command could have the following...

SetDocumentName - XpressDox

The SetDocumentName Command can be used to give the assembled document a particular name, for use in the building of a filename. It would typically be used like this: «SetDocumentName(Sale Agreement)» «SetSavedDocumentFileName(<DocumentName> between <Seller> and <Purchaser>)» where <Seller> represents the data element «Seller» on the template. Any data elements and/or...

SetProfileProperty - XpressDox

Click here for an overview of saving into iManage. Use this XpressDox command to set a document property in a Document Management System SetProfileProperty enables the template author to set a document property in the assembled document, specifically for use in the profiling of documents in a Document Management System...

SetProperty - XpressDox

For more information on the SetProperty function, please refer to the article on Interacting with External Programs.

SetSavedDocumentNameVersioning - XpressDox

Switch on and off versioning of documents assembled by XpressDox Using the SetSavedDocumentFileName command you can determine a meaningful file name for your assembled document. And by default if a subsequent file is created with the same name, the file is versioned. This can be switched off using the «SetSavedDocumentNameVersioning()»...

SetV - XpressDox

SetV sets the value of an XpressDox variable.   Reference material: Please read through this article to understand the difference between data elements and variables. And this article for an overview of working with variables in an XpressDox template. And for reference, here is a post containing a comprehensive list...

SetVr - XpressDox

SetVr sets the value of an XpressDox variable, and removes the paragraph.   Reference material: Please read through this article to understand the difference between data elements and variables. And this article for an overview of working with variables in an XpressDox template. And for reference, here is a post...

String-length - XpressDox

String-length is used to test the length of a string (the value of a data element)     Consider the following example. The business rule is that the value of «Code» may not be more than 4 characters. In order to guide users, a rule has been written testing the...

Substring - XpressDox

Use the substring function to extract a portion of a string in your XpressDox template   Extract from a position in the string until the end The following example will begin extracting the value of GivenString from position 5 until the end. «substring(GivenString,5)»   Extract a portion of the string...

SubstringAfter - XpressDox

Working with strings in XpressDox templates SubstringAfter tests for a string which occurs in another string, but after delimeter inside the string «Comment(This example includes SubstringBefore and SubstringAfter)» The first name is «SubstringBefore(FullNames,' ')» and the last part of the name is «SubstringAfter(FullNames,' ')»   Read more about working with...

SubstringAfterLast - XpressDox

SubstringBeforeLast and SubstringAfterLast These two functions help with manipulation of strings like file paths or IP addresses which have multiple occurrences of a delimiter. For the following examples, assume the data element DocFilePath contains ‘C:\Documents\XpressDox\WordFile.docx’. SubstringBeforeLast can be used to get the name of folder from a full file path,...

SubstringBefore - XpressDox

Working with strings in XpressDox templates SubstringBefore tests for a string which occurs in another string, but before a delimeter inside the string. «Comment(This example includes SubstringBefore and SubstringAfter)» The first name is «SubstringBefore(FullNames,' ')» and the last part of the name is «SubstringAfter(FullNames,' ')»   Read more about working...

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

Sum - XpressDox

Add up repeating numbers using the Sum() function   To simply add up all the numbers inside a ForEach, you can use the Sum() function as demonstrated below: «ForEach(Invoice_item)» «position()». «Desc»: «FormatNumber(Amount)» «End()» TOTAL: «FormatNumber(sum(Invoice_item/Amount))» «CaptureInGrid(Invoice_item,Yes)»   Using some XPATH, you can add on to the above code snippet and...

ToSentence - XpressDox

Convert text into Sentence case   Regardless of the case of the value entered the interview or imported from a database, that value can be converted into sentence case.     Command structure: «ToSentence(Description)» If a sentence entered starts without a capital “i am on vacation.” The result will be...

ToTitle - XpressDox

Convert text to Title Case   Regardless of the case of the value entered the interview or imported from a database, that value can be converted into title case.   Command structure: «ToTitle(Title)» “application for employment” becomes “Application For Employment”     Additional parameters on the ToTitle command:   Usually...

TrimEnd - XpressDox

Trim characters from the end of a string in your XpressDox template   Command structure: «TrimEnd(Address,’,;’)» The above example will remove a comma or a semi-colon from the end of the value of Address.   Using the Trim function inside another function: Say you also wanted to convert the trimmed...

TrimStart - XpressDox

Trim characters from the start of a string in your XpressDox template   Command structure: «TrimStart(Address,’,;’)» The above example will remove a comma or a semi-colon from the start of the value of Address.   Using the Trim function inside another function: Say you also wanted to convert the trimmed...

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.

ValidateBeforeShare - XpressDox

When sharing an interview (Document Services) it might be necessary for the sender to input certain fields before sending the interview to the recipient. This is when the ValidateBeforeShare command is important. Command structure: «ValidateBeforeShare(FirstName,LastName)» «Required(FirstName,LastName,EmailAddress)» Other fields on the interview may be marked as Required, e.g. the EmailAddress as...

With - XpressDox

This article follows on from the Set command article. The With command allows you to add a condition block around one or more Set commands, and apply the same conditions to those Set commands. Conditions in Set commands: By way of example, consider several Set commands which all need to apply...
Loading...