Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Using CSV Data Source in Birt-Report in J2EE-Application
Using CSV Data Source in Birt-Report in J2EE-Application [message #1760258] Tue, 25 April 2017 09:10
Marco R. is currently offline Marco R.Friend
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.
Previous Topic:Data retrieving of 'flat'/generic XML
Next Topic:Build BIRT 4.6.0 from source code
Goto Forum:
  


Current Time: Fri Apr 26 13:32:09 GMT 2024

Powered by FUDForum. Page generated in 0.03230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top