GetVOrDefault – XpressDox
Get the value of a variable or a default value Before you can Get a variable using the «GetV()» function, that variable needs to be Set using the «SetV()» or «SetVr()» function. However, there might
Tutorial videos are available here.
Visit our User Forum for discussions and solutions
Get the value of a variable or a default value Before you can Get a variable using the «GetV()» function, that variable needs to be Set using the «SetV()» or «SetVr()» function. However, there might
Include data from a configured data source in a template Instead of selecting one or more rows from a data source in the interview, you can use the IncludeDataSourceData to include data in your
Increment an amount to an XpressDox variable and remove the paragraph IncrementVr() is essentially the same as IncrementV, except that the paragraph containing the function will be removed after it has performed its increment.
Use PhraseEnd to punctuate the ends of phrases or clauses. The PhraseEnd (shortened to PE) is used to control punctuation at the end of conditional phrases or clauses. Say for instance you have checkboxes
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))»
Convert a cents amount back to currency after use in calculations You can use this function in your XpressDox templates to convert a cents amount back to your currency e.g. 123456 to $1234.56 typically
Convert a currency amount to cents for use in calculations You can use this function in your XpressDox templates to convert a currency amount to cents e.g. $1234.56 to 123456 to use it in
Embed a spreadsheet into an assembled document Using the InsertSpreadsheet command, you can embed a spreadsheet into the assembled document. This uses Microsoft’s OLE technology, which means that when you view the assembled document
After assembling a template to an email (an eml file), optionally add BCC addresses to that assembled email.
Add additional addresses to your XpressDox email template After using the SaveAsEmail or SendAsEmail functions, additional addressees can be added to the XpressDox email template. This function is the same as the AddBCCAddress function but
Add additional addresses to your XpressDox email template When using the SaveAsEmail function in your XpressDox template, additional addressees can be added to the email. This command can also be used conditionally, so the user
Use «AttachToEmail()» in conjunction with the «SaveAsEmail()» or «SendAsEmail()» functions. There are various implementations for this function. Scenario 1: Save the current template as an email, and attach another document to the resulting email. Hard
This function enables you to save the assembled document as an .eml (email) file. Once assembled, the .eml file is ready to be sent via Outlook. View a quick demo of the SaveAsEmail function:
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
Change the alignment of one data element on your XpressDox interview. Command structure: «AlignCaption(Name,Top)» By default, all captions in the interview for a template are aligned to the left of the interview screen.
«AlignCaptions(Right)» will cause the right hand side of all of the captions to be aligned just to the left of their respective controls on the interview.
This command allows the template author for Web interviews to specify where the error messages for data elements in the interview should appear. Command structure: «AlignErrorMessages(Top)» Examples of usage: «AlignErrorMessages(Top)» will cause any error
Creates a button on the interview, which in itself has no functionality, but provides a method to initiate other commands. Command Structure: «Button(XXX)» Examples of usage: Sometimes, the template author would like to
The XpressDox caption command can be used to make the question text for a field more descriptive on the interview. Command structure: «Caption(FieldName,Descriptive Caption Text)» Examples of usage: Simple example: «FirstName» «Caption(FirstName,First Name
Using the LogDataElements() function to debug a template You may have seen you can use the Log() function to write a message into the LogXpressDox.txt file, and also use the LogVariables() to record the
The background to this command probably needs a bit of experience in authoring more complex templates. Because XpressDox uses XSLT technology to format the documents, it is possible to use XSLT and XPath expressions to control some of the processing.
Using the LogVariables() function to debug a template You may have already tried the Log() function to log a message, and LogDataElements() function to record values of data elements, both of which are recorded in
Capture data elements on your XpressDox interview Reasons why you would use this command: You don’t want the value of the data elements added onto the document You want to re-arrange data elements on
CaptureInGrid offers a different way to present repeating data to the user and that is in a grid format – a bit like a spreadsheet. Command structure: «CaptureInGrid(Child,Yes)» Examples of usage: «ForEach(Child)» First
Please see the post on ChooseFromRepeatingData. The 2 commands are exactly the same and can be used interchangeably.
Copyright ©2023 XpressDox. All Rights Reserved. | Website By Hello Fascination