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

Same parameters for JSON datasource in Jasper Reports Server as in JasperSoft Studio


simo.tuokko
Go to solution Solved by simo.tuokko,

Recommended Posts

Hi,

How to set same options/parameters for JSON datasource  in Jasper Reports Server as in JasperSoft Studio? I am using 7.9.0 version of both of them.

I would need to set username+password, request type, and add http header.

These are only parameters I see in Jasper server UI: URI, Language and Query

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

I ended up importing the DataSourceAdapter.xml from studio to JasperReports Server.

Also needed to change in the report's .jrxml property (as it was suggested somewhere in this forum)

from: <property name="com.jaspersoft.studio.data.defaultdataadapter" value="DataSourceAdapter"/>

to:<property name="net.sf.jasperreports.data.adapter" value="repo:/yyyy/DataSourceAdapter.xml"/>

This way report creates the connection succesfully.

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...