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

0

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
64
Joined: May 3 2011 - 11:40am
Last seen: 5 years 4 weeks ago

2 Answers:

0

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
64
Joined: May 3 2011 - 11:40am
Last seen: 5 years 4 weeks ago
0

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
4708
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 2 weeks 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 - 5 years 5 months ago
Feedback
randomness