Jump to content
We've recently updated our Privacy Statement, available here ×

How do I add a CSV datasource in Japser Server?


r.i.p.Harambe
Go to solution Solved by Swapnil Pawar,

Recommended Posts

Hello, I am trying to publish a report to a jasper server that uses a CSV file as a datasource. In jasper studio I am able to create a csv data adapter for my api which returns a csv file at a URL. How can I add this url as a csv data source so I can use this report on my server? When adding a datasource I only see these options:

datasources.png.4a80fa83c563e92701bbebfdda2b1d73.png

Any help on the matter would be appreciated.

Thanks!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

The best way to do this is to delete your uploaded report,  go back to studio and set your CSV datasource as the default data adapter.  Then when you upload again, you should be able to upload the adapter along with the report. 

See this topic for info on setting a default data adapter.  Then when you upload, select "no data source" and the adapter should come along and set itself.

Link to comment
Share on other sites

  • 6 years later...
  • Solution

Hello,

 

Along with the above solution you can also try another way like this one.

Please refer to the 4.12 section- "File Datasource" of TIBCO JasperReports Server Administrator Guide.
https://community.jaspersoft.com/documentation/v8-v80-v800/tibco-jasperr...

Could you use this file as I made the changes in this file and confirmed I am able to see the datasource i.e Text Datasource i.e CSV datasource in the list.
Make sure you did the comment out i.e. disable the line as given below

   <!-- <value>textDataSource</value> -->

and saved the file and restarted the jasperserver to reflect the changes.

 

I hope this will help you!

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...