Dynamic Date Parameters for Scheduler in JasperServer

0
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: 1 year 2 months ago

2 Answers:

-2

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: 1 year 2 months ago
0

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
8924
Joined: Nov 29 2010 - 11:59am
Last seen: 2 years 1 month ago

Is there another method?

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

AsadHaydar - 4 years 10 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 - 4 years 10 months ago
Feedback
randomness