AsadHaydar Posted January 8, 2015 Share Posted January 8, 2015 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?? Link to comment Share on other sites More sharing options...
ernestoo Posted January 8, 2015 Share Posted January 8, 2015 So instead of regular dates you can use this method: https://community.jaspersoft.com/wiki/how-use-relative-dates-jrxml-static-reportsThen when you scheule you can say things like DAY-1 for yesterday Link to comment Share on other sites More sharing options...
AsadHaydar Posted January 8, 2015 Author Share Posted January 8, 2015 Is there another method? It doesn't work for me I need something like this: http://oi60.tinypic.com/2nvxv9k.jpg Link to comment Share on other sites More sharing options...
ernestoo Posted January 8, 2015 Share Posted January 8, 2015 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 Link to comment Share on other sites More sharing options...
Solution AsadHaydar Posted January 23, 2015 Author Solution Share Posted January 23, 2015 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 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