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

How do you get the reports generated via Schedule


alexrgu11

Recommended Posts

I'm new to JasperReports

I scheduled a few reports to run on a recurring schedule  and I have these questions

1. I notice that everytime the report is run it overwrites the report file from the previous run. Is there a way to keep the reports from every recurring run ?

2, Is there any way to get the reports generated by the schedule job via REST ?

Thank you

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Q1.

The first method I came up with is to add a timestamp to the file name.
In the schedule settings, 'Output Option' --> 'File Handling' --> 'Sequential File Names by Timestamp'.


w20210814_outputoption.png.ef7352fb52f22d79a2d3b78be53bb226.png

Q2.


I haven't tried it, but there seems to be a way.
https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v790/working-file-resources
--> Downloading File Resources

 

You can also change the output destination to something other than the repository as an alternative, although I'm not sure if this will meet your requirements.
In the schedule settings, select 'Output Option' --> 'Output Destination' --> 'Output To Host File System(*1)' or 'Output To FTP Server'.

w20210814_outputoption2.png.a1e305bd155f41fcd8cbf4875bd567f7.png

*1. You need to change the settings in order to use it.
https://community.jaspersoft.com/documentation/jasperreports-server-administration-guide/v550/configuring-scheduler
--> Restricting File System Output
  --> ...WEB-INFapplicationContext.xml
     --> enableSaveToHostFS=true

 

 

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...