Help & FAQ

Search product documentation and frequently asked questions.

What is EREL? ERD Report Renderer

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 and in the document ERD Report Renderer produces from it.

What is a template? ERD Report Renderer

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 your application hands it to the binary in the request itself: the manifest line, then the template bytes, then the data. The renderer keeps no template store, so every call carries the template it should draw.