How to Pass Parameters to a custom ReportDataSourceService

I have defined a custom ReportDataSourceService that will be used to generate a specialised JRBeanCollectionDataSource from data retrieved from the database.  The data needs to be extensively manipulated before it is presented to the user.

The problem I now face is that of applying some parameters to the data.

How do I pass parameters from Jasperserver to the ReportDataSourceService?  For example, I need to pass two dates to the service so that I can use these BEFORE the JRBeanCollectionDataSource is passed to the report.

Regards, David

 

bolsover's picture
237
Joined: Aug 19 2009 - 1:35am
Last seen: 4 years 7 months ago

3 Answers:

Problem solved I got the solution.
bolsover's picture
237
Joined: Aug 19 2009 - 1:35am
Last seen: 4 years 7 months ago
Can you please share your solution. I am trying to achieve the same.
abidi's picture
25
Joined: Oct 21 2014 - 10:10am
Last seen: 8 years 1 month ago
I think I am good :) Making it a parameter on the jasper server fixed my issue
abidi's picture
25
Joined: Oct 21 2014 - 10:10am
Last seen: 8 years 1 month ago
Feedback