NColaco Posted October 30, 2012 Share Posted October 30, 2012 I have start date & end date as the input paramter . Enddate should be <= to Sysdate or Today's date.In input control properties , how can enter the Max date as Today's date or sysdate . Below is scrren shot where i am trying to set the Max Value. Please let me know if we have any work around I Thanks in Advance Link to comment Share on other sites More sharing options...
Solution mgeise Posted October 30, 2012 Solution Share Posted October 30, 2012 Unfortunately, this (entering an expression as the minimum/maximum values) is not something that is currently supported within the input controls. I recommend logging it as an enhancement request in the Tracker.In the mean time, to acheive nearly the same result, what you could do is allow the future dates but then do a check on the parameter value within the report to see if it is greater than today's date - using a java expression, etc.. If it is greater, then you could use set a variable to today's date and use that in your query and add some text into your report with a printwhen expression that matches the scenario to let the end user know that the report has been run using today's date.I hope that is helpful. Link to comment Share on other sites More sharing options...
NColaco Posted October 31, 2012 Author Share Posted October 31, 2012 Thanks mgeise. It works. Link to comment Share on other sites More sharing options...
bestia_averno Posted February 9, 2016 Share Posted February 9, 2016 It's really a common validation requirement, if FromDate it's after ToDate then it should be a mechanism to tell this to the user at the Input Dialog. Link to comment Share on other sites More sharing options...
598130593 Posted March 26, 2016 Share Posted March 26, 2016 It's really a common validation requirement. But Jasper cannot support this. Link to comment Share on other sites More sharing options...
vaibhav_jain_ Posted September 6, 2017 Share Posted September 6, 2017 Hi, is this a part of jasper now? if yes how can we achieve this. 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