waalp Posted April 16, 2014 Share Posted April 16, 2014 We would like to create a report from a adhocDataView with the jasperserver webservice ? We would like to use scheduling in our application. But scheduling in jasperserver only seems to work on report basis. All our reports are adhoc views. So to use scheduling, we would need to automatically create a report bases on this adhoc view to be able to schedule it. Regards,Peter Link to comment Share on other sites More sharing options...
marianol Posted April 17, 2014 Share Posted April 17, 2014 What Version of Jasper Server are you in? 5.5?I have not seen any REST API endpoints to do this, but there may be something you can extend or customize. Link to comment Share on other sites More sharing options...
waalp Posted April 22, 2014 Author Share Posted April 22, 2014 Currently where are in 4.7. Jaspersoft have this now logged ad a enhanchment request. Currently we are looking into extending the rest api ourselfs. Link to comment Share on other sites More sharing options...
Solution waalp Posted April 23, 2014 Author Solution Share Posted April 23, 2014 At the end we decided to use the HTTP Repository API. This for now seems to work great.We do a POST to http://localhost:8080/jasperserver-pro/reportGenerator.html?action=generateWith a data parameter with the following JSON:{ "label": "SCHEDULED_REPORT", "description": "REPORT_CREATED_BY_SCHEDULER", "location": "/Users/JOE_USER", "overwrite": true, "run": false, "sourceURI": "/Users/JOE_USER/BASE_REPORT"} Peter Link to comment Share on other sites More sharing options...
Recommended Posts
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