[#4554] - Custom JRDataSource: Allowing to pass java.util.Map argument in Static method getDataSource

Category:
Feature request
Priority:
Immediate
Status:
Assigned
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

When I tried to put some arguments in my running Custom DataSource, it issued an error "Exception" window with the message "General Problem......"

Then, try to check the document, it says that Create a Factory Class with Static method that returns the JRDataSource (but without any arguments).

Could you allow us to pass a java.util.Map argument in order to address the flexibility of a custom datasource.

erosszz_jp's picture
Joined: Jan 24 2010 - 4:36pm
Last seen: 13 years 8 months ago

3 Comments:

#1

for example:
I created a CSV Custom DataSource, then it needs to create Factory Class with Static getDataSource Method (without argument) in order to use with iReport. The CSV full file path is fixed inside the static method, therefore need to create a factory class every csv file.
When you allows us to pass a java.util.Map argument, it will become more flexible and don't need to create more factory class with the same functionality.

#2

could you please leave a note if this request is possible to address or feasible to be added features...

#3

I need something like this too, what kind of tool don't allow you to generate a source of data with parameters, for me that don't make sense. I hope this will be addressed by now, but...

Feedback