Jump to content
We've recently updated our Privacy Statement, available here ×

Using Month and Year as a parameter excluding date


kmn

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try changing two properties of jasperserver_config.properties shown below present in WEB-INF/bundles:

date.format=yyyy-MM-dd
calendar.date.format=yy-mm-dd
 
Keep in mind that this is a server level change, and you need to make this change only if you need this change to all the dates you have as parameters in all the reports.
If you need a change for only one report - i would suggest you to create a new locale and make these changes only to that particular locale. That way, if you are embedding this report in your application, you can call this report with an additional parameter to supply this locale.
Link to comment
Share on other sites

One possibility even if it's little bit awkward, is to use String for both Month and Year and to use Cascading Input Control. This may require month and year values to be stored in the database table.

Another way is to customize JasperReports Server. There's no validation check on String input control so this modification is actually very good but you'll need to program.

Link to comment
Share on other sites

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