creating a report based on an adhocView with the jasperserver webservice api

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

waalp's picture
530
Joined: May 3 2011 - 11:40am
Last seen: 8 years 8 months ago

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

waalp's picture
530
Joined: May 3 2011 - 11:40am
Last seen: 8 years 8 months ago

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.

marianol's picture
16194
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 7 months ago

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.

waalp - 9 years 1 month ago
Feedback
randomness