Using CSV Data Source in Birt-Report in J2EE-Application [message #1760258] |
Tue, 25 April 2017 09:10 |
Marco R. Messages: 2 Registered: December 2014 |
Junior Member |
|
|
Hi there,
we have a j2ee-application using the birt report engine 4.2.1.
At runtime we load the rptdesign and furthermore we generate dynamically a xml for the xml-data source which we pass as inputstream to a Birt-Task
aBirtTask.getAppContext().put("org.eclipse.datatools.enablement.oda.xml.inputStream", new ByteArrayInputStream(aXml.getBytes()));
aBirtTask.getAppContext().put("org.eclipse.datatools.enablement.oda.xml.closeInputStream", "true");
That works just fine.
Now we would like to add data from a csv-file to one specific report. Adding a new Data Source (Flat-File as ssv) to the report design works and data is printed at design-time when telling the report, where the csv-file is located (with relative path), but it seems that at runtime the csv-file can't be located, although it is deployed in the j2ee-webapp-container.
I guess telling the report design where the csv-file is located is not enough?
Is there a way to achieve this maybe by passing the csv as stream as well, as it is done with the xml? Or is there some other way?
Thanks in advance for any hints.
|
|
|
Powered by
FUDForum. Page generated in 0.03230 seconds