kmn Posted June 15, 2016 Share Posted June 15, 2016 The parameters I will be passing is only Month and Year and not date. Link to comment Share on other sites More sharing options...
hozawa Posted June 15, 2016 Share Posted June 15, 2016 So create parameters Month and Year. Link to comment Share on other sites More sharing options...
kmn Posted June 16, 2016 Author Share Posted June 16, 2016 ya i know that but what should be the datatype of the paramter. when i create with date it will show the date picker which i dont want. but i should be able to select month and year Link to comment Share on other sites More sharing options...
gururagavan2008 Posted June 16, 2016 Share Posted June 16, 2016 Try changing two properties of jasperserver_config.properties shown below present in WEB-INF/bundles:date.format=yyyy-MM-ddcalendar.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 More sharing options...
hozawa Posted June 16, 2016 Share Posted June 16, 2016 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 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