I’m having problems sending my own list of DTO entities to a Jmix report. I create my list, run queries to populate certain attributes, and pass the collection as a parameter using uiReportRunner addparam.
In my report, I created a parameter as a “List of Entities” and chose my DTO entity. My report band has a dataset type “List of Entities,” I’ve selected my parameter name, and I’ve selected the attributes I want from the DTO.
When I run the report, I receive a dialog “An error occurred while generating report” while loading data for the band, query and report name. It simply states: “No results.”
What I suspect is happening is that the report runner is attempting to run a query. I need to report on a DTO collection that I’ve created in code. Is it possible to do that? Perhaps I’ve overlooked something in the documentation.
Thanks in advance for any guidance you can provide.