Jump to content
We've recently updated our Privacy Statement, available here ×

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


waalp
Go to solution Solved by waalp,

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...