Search results
A field is a placeholder within a template that controls the insertion or removal of content from the generated document. Creating fields A field is created just…
An optional paragraph field is just like a normal field, except, if there is no data for that field, the entire paragraph containing the field is removed.…
Comments can be used to mark content within a template that should be ignored and therefore won’t appear in the generated document. Comments are useful for: Embedding…
Creating high-quality templates is essential for generating well-structured documents. This tutorial explores the use of tables, paragraph properties and other template editor features to ensure that, as…
Conditional sections are similar to an "IF" statement. They are created using the <<cs_ prefix, and are used to mark content that should be included or removed…
Conditional Sections covered how to add or remove content from the final document. When a conditional section returns false and content is removed, there is sometimes a…
Within a Conditional Section it is possible to include an Else statement to allow alternative content to be provided in case where an expression is false. Else-If…
This example introduces the notation used to perform simple logic calculations in the templates. It explores how to call logic and boolean operators such as AND/OR within…
This example introduces the notation used to perform simple math calculations in the templates. It explains how to call math functions and format the results that are…
Depending on the particular software application you are using, it might not be possible to change your data before sending it to Docmosis. Docmosis has a range…
Repeating data, from an array of data, can be displayed in many ways. This example contains: each item on a new line, each item on the same…
This example demonstrates the use of the Docmosis size()function, and the built-in $size variable. Using array size When working with groups or sets of data, it may…
Items in an array can be displayed as a comma separated string in a sentence. The examples below describe methods used to cater for the different possibilities…
Docmosis allows you to control how numbers are displayed in the finished document. For example: the raw data may have numbers like: 1234.5. Using the built-in function…
Docmosis allows you to control how dates and times are displayed in the finished document. For example: the raw data may have a date like: 21-03-16. Using…
If a total is not provided as part of the data, it is possible to calculate a subtotal or a total from the data and display the…
This example shows you how to use tables to display repeating data (eg: objects in an array). By setting different table properties and paragraph properties you can…
Use the conditional rows <<cr_ directive in a template to include or exclude single or multiple rows from a table. You can filter out multiple rows based…
There may be times when you want to include or exclude columns in a table depending on the supplied data. Docmosis allows tables to conditionally add or…
The Conditional Columns article covered how to include or exclude columns in a table using Boolean fields and expressions. However, sometimes a column may need to be…