Jump to content
Changes to the Jaspersoft community edition download ×

Creating a calendar to choose dates


memory721

Recommended Posts

Hello,

I'm trying to create a calendar so that the report users can select their date range.  I have done the following.

1)  Created 2 parameters in iReport:  a) Parameter name= Start_Date                           b) Parameter name = End_Date

Both have Parameter class:  java.lang.String

Both have Default Value Expression:  (new SimpleDateFormat("yyyy-mm-dd"<<>>)).format($P{Start_Date})

For End_Date parameter I changed the end to specifiy the correct parameter.

In Jasperserver, I created a datatype called date and then I created an input control using that datatype for both Start_Date and End_Date.  It just doesn't work.

All I need is the ability for users to use a 2 little calendars, 1 for the Start_Date and the other for the End_Date so they can pick their date range.

Any help will be greatly appreciated!!

Thank you in advance!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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