Parameter values from CSV file

Hi Gurus
My requirement is  we have report with oracle database only but we   want to getting parameter values from CSV file is it possible?
I mean ,  we are getting some IDs  from user  in CSV file. we have to  use those values as  input parameter  to craete report every month. 
we are using  Jasper 6.1  is  it possible?
Thanks for your time.
ananth890's picture
Joined: Jan 30 2016 - 8:08pm
Last seen: 1 year 8 months ago

1 Answer:

I believe there is no direct way to achieve this.

but can be achieved by creating a list of values using the csv and selecting the input control on the report as this list of values.

try to come up with a batch file that can create the xml (format as below) on the fly from your csv and push it to the Jasper repository as a list of values.

<?xml version="1.0" encoding="UTF-8"?>
<listOfValues exportedWithPermissions="true">
        <itemValue xmlns:xsi=""
            xmlns:java="" xsi:type="java:java.lang.String">1</itemValue>
        <itemValue xmlns:xsi=""
            xmlns:java="" xsi:type="java:java.lang.String">2</itemValue>

reportdev's picture
Joined: Oct 12 2015 - 12:05pm
Last seen: 1 year 3 months ago