What is ADX?
Last updated
Was this helpful?
Last updated
Was this helpful?
The Atfinity Document XML (ADX) format is a way to describe what should be on a document and how it should be rendered. It's design is loosely inspired by HTML, so if you are familiar with HTML you will probably feel right at home quickly.
ADX documents are just documents that are templated with to display case information where you need it. To write ADX it helps if you are familiar with XML and Jinja.
An ADX template needs to at least contain a root tag and a body. For everything but testing, you probably also want to add content within the body. A very simple ADX would look like this:
In most cases, you also want to customise the template your content is printed on. You do this by defining a template and then using it, like this:
Above we define a template with the id simple_header
and then use it later by setting the template of body to the same id.
To connect such a document to a case, we add some Jinja instructions to place information values and fields. The matches instances of a document conditions are available to you, so you can place information like this:
If you want to display a field, you can combine this with a field tag like this:
As you can see, Jinja instructions are within {{...}}
blocks. They follow a syntax very similar to Python (head to the for details).