Dynamic Date Parameters for Scheduler in JasperServer

I have a report with Parameters two of them are date parameters (Start Date, End Date)
 
Now, I want to schedule this report in JasperServer and i want, Instead of choosing a date, only write for example  "Yesterday, Last Week etc...."
 
How can I do that? I have searched long on the internet and found nothing!
I heard i can do that with a java class which convert a string to a date ... but i don't had any experience in java.. :(
 
I'm very confused can someone help me??
AsadHaydar's picture
Joined: Aug 11 2014 - 12:25am
Last seen: 5 years 2 weeks ago

2 Answers:

After struggling 3 weeks , I finally got a Solution for my Problem. The Problem was solved by adding a java class to the jasperserver and include that also in the report.. 

now i'm able to select for example "quarter to Week" or "Last Week" and it will calculate it for me.. the best solution for the Scheduler...

If anyone has the same problem and want my solution he can contact me immedialty on my Jasper Account and i will send him the java class with a introduction how to deal with it.. .

 

Asad Haydar

AsadHaydar's picture
Joined: Aug 11 2014 - 12:25am
Last seen: 5 years 2 weeks ago

So instead of regular dates you can use this method: https://community.jaspersoft.com/wiki/how-use-relative-dates-jrxml-stati...

Then when you scheule you can say things like DAY-1 for yesterday

ernestoo's picture
18948
Joined: Nov 29 2010 - 11:59am
Last seen: 5 years 11 months ago

Is there another method?

It doesn't work for me
I need something like this:
http://oi60.tinypic.com/2nvxv9k.jpg

AsadHaydar - 8 years 8 months ago

Yes, you can do this - you'll need to create a list type input control with the options like "Yesterday" with a value of DAY-1

ernestoo - 8 years 8 months ago
Feedback