On line guide/help

You are on page 33 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.

Index Prev. Next

System variables

Automatic placeholders

There are special placeholders, called system variables, that are automatically replaced with their respective values without the need to use custom variables and set them using PHP code. Here's the complete list:

The format settings (NUMERICDECIMALSEPARATOR, CURRENCYSYMBOL, ..) are also stored in variables: see the Value formatting page.

{PAGECOUNT} is the total number of pages of the whole document (version 1.0.12 or later; in the previous versions it had the same value as {PAGEINDEX}). The total is known only at the end, so when the template, or a variable, contains {PAGECOUNT} the report is built twice: the first pass only counts the pages, the second one prints the document, and the data providers are executed twice. Templates without {PAGECOUNT} are built once. In a report with more documents (eg. one invoice for each master data row) {PAGECOUNT} is the total of all the documents: for the pages of each document use {section_id.PAGEINDEX} and a value calculated in the query, eg. {inv.pagesCount}.