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
2 Answers:
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=generate
With 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
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.