doubledutch Posted December 22, 2008 Share Posted December 22, 2008 Hi, I've started to use the Jasper SOAP api recently but I'm not sure if my approach is correct and I was wondering if someone could clarify this for me. I have a report which takes a long time to execute. It's stored in my JS-Repository and I want to offer my users the possibility of asking for this report on request (not scheduled). I believe I can't really use the "runReport" SOAP call because the report just takes too long to execute but creating a new schedule every time the report is requested seems really messy because it's not really a schedule, it's a one-time run only. So ideally I would like to do what I can do in JasperServer which is ask for the report to be run in the background with the results emailed to my user. But I can't find how to do that using the SOAP api. Can someone make a suggestion of how to do this without creating a new schedule every the time or if I have to use the scheduler, which parameters should I use to run it immediately and never again? Thanks Leon Link to comment Share on other sites More sharing options...
swood Posted December 30, 2008 Share Posted December 30, 2008 Have you seen the scheduling web services in the Web Services guide?There is currently no way to do this through web services. We need to add it into the scheduling web services. ShermanJaspersoft Link to comment Share on other sites More sharing options...
swood Posted December 30, 2008 Share Posted December 30, 2008 I got some information from Lucian.In the scheduling web services request, if you set a SimpleJobTrigger with the start date to null and the recurrences to 1, this will give you the effect you want - the report run immediately once. ShermanJaspersoft Link to comment Share on other sites More sharing options...
doubledutch Posted January 4, 2009 Author Share Posted January 4, 2009 Hi Sherman; that worked perfectly. Thanks for your help. 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