markbeardhome Posted September 26, 2016 Share Posted September 26, 2016 HI I have a table element report and I wish to enable the user to filter by a column "Date" when running the report on the serverThis is a UK based date system 19/11/2013, but when I click on the date and filer for that date by the calendar I get no results I have found that in the jasperreports_messages.properties ypou can alter the output of the calendar here and that desplays the correct date, but the filter still is not workingThis is a JR5 servercan anyone help? Link to comment Share on other sites More sharing options...
kkriplani Posted September 27, 2016 Share Posted September 27, 2016 What is the name of the date parameter you have used in sql of the report? have you linked the input control with the parameter?Run the logs and check what the query returns. Link to comment Share on other sites More sharing options...
markbeardhome Posted September 27, 2016 Author Share Posted September 27, 2016 I am not using a parameter, its a field in a table element, I have used a cdate::date from postgress which casts a time date field to a date.I am then filtering this after the report has run within the table element, numeric and text fields work fine but the date returns no value. I have tried before/ between options and teh syems allows the calendar selection Link to comment Share on other sites More sharing options...
markbeardhome Posted September 27, 2016 Author Share Posted September 27, 2016 This is the errorCaused by: groovy.lang.MissingPropertyException: No such property: cdate for class: cust32code_1474905584081_434293Possible solutions: classat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:86)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)at cust32code_1474905584081_434293.evaluate(calculator_cust32code_1474905584081_434293:189)at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190)... 30 more 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