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??
2 Answers:
Posted on January 23, 2015 at 6:34am
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
Posted on January 8, 2015 at 7:13am
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
Is there another method?
It doesn't work for me
I need something like this:
http://oi60.tinypic.com/2nvxv9k.jpg
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