intive-FDV / DynamicJasper

Dynamic Reports using Jasper Reports
http://intive-fdv.github.io/DynamicJasper/
GNU Lesser General Public License v3.0
242 stars 127 forks source link

Can't see how to use arbitrary dataSourceExpression #54

Open salk31 opened 6 years ago

salk31 commented 6 years ago

I think vanilla jrxml lets me put in a fragment of Java. I'd like to do this so I can't create a specific bean.

e.g. subreport.setDatasource(new DJDataSource("new foo.BarJRDataSource()", ???, DJConstants.DATA_SOURCE_TYPE_COLLECTION));

I think a simple new constant and a tweak to the getDataSourceExpression would allow this quite simply if not too evil?

Many thanks

Sam