fill report with json data using rest service.

Hello,

Im looking for obtain PDF report from my JasperServer, with a embbemed json in the request as a DataSource which fill the report.  Im using Angular-JS. 

I found this solution wich use XML instead. http://community.jaspersoft.com/wiki/remote-xml-datasource.  

This is the correct way to do it?.  

Thanks, im newbie in JasperSoft.

 

correo.luis.vg's picture
Joined: May 30 2016 - 1:12am
Last seen: 6 years 9 months ago

Oooops. Just found this http://community.jaspersoft.com/wiki/how-use-json-remote-data-source-version-561

Lets test it =). 

 

 

correo.luis.vg - 7 years 3 months ago

2 Answers:

You could check my answer here: http://stackoverflow.com/questions/37408863/location-data-for-filling-th...

It is more up-to-date and involves REST services. Although it is for XML it can easily be switched to use JSON (with JSON_INPUT_STREAM or net.sf.jasperreports.json.source parameter) 

narcism's picture
6470
Joined: Nov 22 2010 - 12:39am
Last seen: 6 hours 45 min ago

I pass json data through JSON_INPUT_STREAM but report datasets doesn't seem to get json data. I put in table dataset parameters to retreive JSON_INPUT_STREAM and net.sf.jasperreports.json.source parameters from master report, but nothing happens.

maytemozo87's picture
Joined: May 8 2017 - 2:11pm
Last seen: 5 years 4 months ago
Feedback
randomness