View Full Version : Pass dataset to MasterReport instance

12-07-2016, 12:23 PM
Hi everyone.

I have successfully embedded the Pentaho Reporting Engine on a Clojure application. However, I would like to know if exists a way to pass a dataset directly to a MasterReport instance? The example provided on https://help.pentaho.com/Documentation/7.0/0R0/140 explains how to do it using a SQLReportDataFactory (DriverConnectionProvider + SQL query).

For my use case, I can't use a SQL query because the dataset is constructed from many data sources, and then it gets transformed in several steps.

Thanks in advance.

12-08-2016, 09:28 PM
After doing a long research, I think I found what I was looking for. Currently, I am trying to use the org.pentaho.reporting.engine.classic.core.TableDataFactory class to provide data to my report. However, I don't know how should I configure the datasource inside my report. Should I use the external datasource type?

12-09-2016, 09:35 AM
I finally solved the problem. I had to use a Table type datasource.