Jump to content
Changes to the Jaspersoft community edition download ×

How to default an input control to todays date in an ad-hoc-view


Recommended Posts

I have created an ad-hoc-view using a topic to access my data. In the jrxml I have prepared a parameter "param_ValueDate" with class type = "java.sql".date and default value expression = "TODAY()". 
In the ad-hoc-view the input control shows the today's date (e.g. 2018-09-26). When I run it on the next day it  shows the same date ("2018-09-26") instead of today's date ("2018-09-27").

Some weeks I have created a similar ad-hoc-view where the date defaulting works fine. But I have no clue what I make wrong now.

I have exported the both ad-hoc-views from Jaspersoft Server and identified the following difference in the topicJRXML.data files:

where it is o.k.:

    <parameter name="param_ValueDate" class="java.sql.Date">

not o.k.:

    <parameter name="pmtr_ValueDate" class="java.sql.Date">

What do I have to do to achieve the defaulting to the current date?



Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...