mc.bechara Posted August 20, 2015 Share Posted August 20, 2015 I have an adhoc view with field myDate, when I add it to the filters and say myDate is After DAY-30 or any other time value, nothing is affected.There results don't get refreshed with this filter. However same report used to work with jaspersoft 6.0Why isn't it working in version 6.1? Link to comment Share on other sites More sharing options...
marianol Posted August 25, 2015 Share Posted August 25, 2015 I just tested this with the supermart domain that comes with the samples and is working. I just selected the Supermart Domain, the Expenses Group and filtered by expense date (YEAR-3 or MONTH-40 since the dates of that dataset are for 2012 and 2013) and choose "is after" for the filter action. One important thing to note is that you need to press the APPLY button at the bottom of the filter panel so the filter get applied.Was the domain imported form 6.0? What database are you using? Link to comment Share on other sites More sharing options...
mc.bechara Posted August 26, 2015 Author Share Posted August 26, 2015 of course I clicked Apply and nothing happened.The domain was imported from v.6.0and I have this in the log:xception calling JRDataSource.next() for query select * from ( select "PO_DATE", Sum("QUANTITY") as "Sum_QUANTITY", Sum("TOTAL_NET_PRICE_USD") as "Sum_TOTAL_NET_PRICE_USD"from "KARLOS"."VIEW_REPORT_PURCHASES"where "SCOPE_ID" = 'CB' and 1 = 1 and 1 = 1 and 1 = 1 and EXTRACT(YEAR FROM "PO_DATE") = 2015 and ("PO_DATE" > '2015-08-25 12:29:12')group by "PO_DATE"order by "PO_DATE" ) where ROWNUM <= 200001 at com.jaspersoft.commons.semantic.dsimpl.JRQueryDataSet$JRDataSetIterator.next(JRQueryDataSet.java:432)at com.jaspersoft.commons.datarator.CachedData.fetchData(CachedData.java:219)... 127 moreCaused by: net.sf.jasperreports.engine.JRException: Error executing SQL statement for: null.at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:267)at com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuter.createDatasource(JRTimezoneJdbcQueryExecuter.java:168)at com.jaspersoft.commons.util.JSControlledJdbcQueryExecuter.run(JSControlledJdbcQueryExecuter.java:156)... 1 moreCaused by: java.sql.SQLDataException: ORA-01861: literal does not match format string Link to comment Share on other sites More sharing options...
mc.bechara Posted August 26, 2015 Author Share Posted August 26, 2015 @marianol I found out that in v.6.0 my query in jasper used to be and ("PO_DATE" > TIMESTAMP '2015-08-12 00:00:00')while in v.6.1 it's and ("PO_DATE" > '2015-08-12 00:00:00') that's why the error.But how to fix it? knowing that mapping of semantics is correct. Link to comment Share on other sites More sharing options...
mc.bechara Posted August 27, 2015 Author Share Posted August 27, 2015 oh by the way my database is oracle Link to comment Share on other sites More sharing options...
mc.bechara Posted August 28, 2015 Author Share Posted August 28, 2015 anyone has a solution for this please? i'm not finding any in the forums. Link to comment Share on other sites More sharing options...
mc.bechara Posted September 4, 2015 Author Share Posted September 4, 2015 any ideas of the solution ? Link to comment Share on other sites More sharing options...
gsteiner Posted September 9, 2015 Share Posted September 9, 2015 We are having the same exact issue w/ an oracle backend. Have not encountered it with Postgres. Link to comment Share on other sites More sharing options...
gsteiner Posted September 9, 2015 Share Posted September 9, 2015 Here is a workaround I received from Support. There is a workaround and to make this change, edit WEB-INF/applicationContext-semanticLayer.xml and look for the property "excludeFunctionTemplates" in the bean "defaultSQLGenerator".Comment out the two elements as shown: Link to comment Share on other sites More sharing options...
mc.bechara Posted September 10, 2015 Author Share Posted September 10, 2015 But if i comment those 2 I'm getting the following error: java.lang.RuntimeException: groovy evaluation failed on string args[0].value and expression Integer(2015)and if I comment only the timestamp I get the following error: java.lang.RuntimeException: error getting schema 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