Help & FAQ
Search product documentation and frequently asked questions.
What is EREL? ERD Report Server
EREL — the ERD Reporting Expression Language — is the small, safe language a template uses wherever a value has to be worked out: an element binding, a visibility rule, a group key, a formatting rule, a chart series, a barcode value.
It is deliberately closed. There are literals, references to the data and to the report, member access, a fixed set of built-in functions such as format.currency, concat and count, and the usual arithmetic, comparison, logical and conditional operators. There is no input or output, no loop, no user-defined function and no way to reach the host, so a template stays data and never becomes code.
The designer and the engine each implement EREL, and both have to produce the same value — or the same diagnostic — for every valid expression. That is why a template looks the same in the designer, in ERD Report Cloud and in the document ERD Report Server answers with.
What is a template? ERD Report Server
A template is a JSON document (format erd-report-template, templateVersion 1): pages measured in points, each holding elements with a fixed frame and optional repeating bands, with an EREL expression wherever a value comes from the data. It can carry a dataSchema that says which data it expects, and images are embedded as data URIs — a URL or a file path in a template is never fetched.
The designer exports it, and that document is what you POST to the container: the request body is the same one erd-report-render reads on standard input — the manifest line, then the template, the data and any report or password sections. The server keeps no template store, so every request carries the template it should draw.