Create a data adapter in TIBCO Jaspersoft® Studio.
Create a report using this data adapter.
Test the report in the Jaspersoft® Studio to make sure it works.
Export the data adapter from Jaspersoft® Studio.
Deploy this data adapter into TIBCO JasperReports® Server repository as XML file. (Right click on the folder in JasperReports® Server, Select "Add Resource", "File". "XML File", "Choose File",
In Jaspersoft® Studio, add the following property to the report template:
<property name="net.sf.jasperreports.data.adapter" value="repo:{path to the data adapter done in step 5}"/>
To get the "repo:... value, Go to the "Properties" of the XML file you added in JasperReports® Server. Review data source properties to determine the repository path to the data adapter:
Use that information to set "repo:..." value.
This property should replace the existing dataadapter property (com.jaspersoft.studio.data.defaultdataadapter).
Test the modified report in the Studio to make sure it works.
Publish the modified Jaspersoft® Studio report into JasperReports® Server repository without a data source.
Test the report in JasperReports® Server.
(Note, this is an update to WIKI article https://community.jaspersoft.com/wiki/how-deploy-and-use-data-adapter-jasperreports-server-v56, tested on Jaspersoft® Studio 7.5 and JasperReports® Server 7.5. )
Recommended Comments
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 accountSign in
Already have an account? Sign in here.
Sign In Now