sabrish.jackson007_1 Posted July 28, 2017 Share Posted July 28, 2017 Hi All,I am trying to execute a .jrxml file using JasperReport Server.My Report.jrxml file prompts for user input while executing.We need to pass the START_DATE and END_DATE values.START_DATE should be yesterday's date and END_DATE should also be yesterday's date. And it should be scheduled in such a way, if it runs the report TODAY, it should get the parameters as yesterday's date, and if it runs tomorrow, it should get today's date and so on. How could this be acheived?How could i pass the start and end date as the parameters using JasperReport Server. Could anyone please let me know the steps to be followed. Link to comment Share on other sites More sharing options...
nicolas.veilleux Posted July 28, 2017 Share Posted July 28, 2017 . Link to comment Share on other sites More sharing options...
nicolas.veilleux Posted July 28, 2017 Share Posted July 28, 2017 For example, you can pass a string (as parameter) who represents a date. After in your rapport, you can build a java.sql.util.Date with this string representation. You can import <import value="org.apache.commons.lang.time.*"/> to use DateUtils in expressions. Link to comment Share on other sites More sharing options...
tamara.berova Posted July 31, 2017 Share Posted July 31, 2017 Hi! From Version 6.3.0 JasperSoft can work with the class java.util.date. This one get Date and set Date. You must only describe your Text Field or variable in Report accordingly.Best RegardsTamara Berova 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