Search

Variables

CentsToCurrency – XpressDox

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

Read More »

CurrencyToCents – XpressDox

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

Read More »

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

Read More »

Using variables to calculate totals

XpressDox give the template author the ability to perform calculations and other operations on the values of data elements, and to store those values in variables for later use in the template. One example of this is the ability to calculate totals on repeated data elements.

Read More »

Shortcuts when using variables

With effect from Version 7, there are a number of shortcuts for referring to some of the variable-handling functions. They were introduced to take away the amount of typing necessary when many variables are being

Read More »

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

Read More »

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

Read More »

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))»

Read More »