Hello,
Even though you are using Mendix Studio Pro 8.18.27, you can generate a PDF comparison report using a Document Template, but with a few limitations because it is an older version.
Here is the recommended approach:
Limitations in Studio Pro 8.18.27
If advanced formatting or dynamic comparison logic is required, upgrading to a newer Mendix version (9 or 10) is recommended.
Hope this helps.
Thanks!
I would recommend using a Document Template together with a microflow, as this is the most reliable approach in Mendix 8.18.27.
A good practice is to first prepare the comparison data in a simple helper structure, where each row represents one item being compared (for example, field name, old value, and new value). This keeps the logic clear and makes the document easy to render.
Then, in the microflow, generate this data and pass it to a Document Template that displays the comparison in a table format. Finally, use the standard Generate document and Download file actions to produce and deliver the PDF. This approach is straightforward, well supported in older Mendix versions, and easy to maintain.
Hello,
You can generate dynamic PDF reports in Mendix using Document Templates, and the approach is general enough to apply to any use case where structured comparison or reporting is needed.
Recommended approach:
System.FileDocument so the PDF can be stored. Add attributes like ReportName and associations to the records you want to compare (e.g., old vs new).$Entity/name + ' Report '
Limitations in older Mendix versions:
This method provides a reusable way to produce professional, audit‑friendly reports with dynamic names, and can be adapted for any scenario where comparisons or structured documentation are required.
Thanks!