Jump to content
Changes to the Jaspersoft community edition download ×

Max Value of Date Parameter as Sysdate or Today's date


NColaco
Go to solution Solved by mgeise,

Recommended Posts

 

 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 

10-30-20126-15-36PM.jpg.9f131ae572bd6b9d9735ff61810cb3e6.jpg

Thanks  in Advance

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

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

  • 3 years later...
  • 1 month later...
  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...