enol.cordero Posted July 30, 2015 Share Posted July 30, 2015 Hi,I want to schedule my report in Jasperserver. This report must be executed every day at 8 with current date as parameter. The problem is that, when I create the scheduled report, it takes the date correctly, but that date is not updated everyday. Let's say I schedule it today, so it takes the right date. The problem begins tomorrow, when it should take tomorrows date, but it doesn't.My parameter is defined as date and has "java.util.Date()" as default date. Is there any way to make this work? The idea is "loading" parameters everyday, not keeping them fixed.Thanks in advance! Link to comment Share on other sites More sharing options...
elizam Posted July 30, 2015 Share Posted July 30, 2015 What you want to use in your report is a relative date. To have it run today, create a filter on your date field and then in the first filter entry box, add DAY. If you just want everything from today, you can add DAY in the second entry box.If you want everything from yesterday, you can do DAY-1 and DAY-1If you wanted yesterday and today, then you would do DAY-1 in the first box and DAY in the second box.Other options are DAY, WEEK, QUARTER, SEMI, YEAR 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