gowsy Posted August 23, 2009 Share Posted August 23, 2009 HiCan u tell me that where can i see the sl schema of jasperserver. Now i am in critical situation to complete my report module i am using jasperserver version 3.1 i want to generate report for past 24 hours.I dont know how to use <queryFilterString> Adhoc getnerated the jrxml file in that i can see the below line for between date condition<queryFilterString>MODIFIEDTIME in (d'2009-08-21':d'2009-08-22')</queryFilterString> The above is fixed date but i want the one day data so i replaced as below<queryFilterString>MODIFIEDTIME in (CONCAT("d'", subdate(current_date,1),"'",":d'",current_date,"'"))</queryFilterString> but it is showing null pointer exception. how can i solve this problem. i want to give between date dynamically . Please hepl me Thanks, Syed. Link to comment Share on other sites More sharing options...
swood Posted October 3, 2009 Share Posted October 3, 2009 The "sl" query language is used by domains in Jaspersoft Professional. It is not SQL. The domains are used to determine what exact query is to be generated. You need something like: <queryFilterString>MODIFIEDTIME in (yesterday():today())</queryFilterString> yesterday() and today() can be defined as functions in WEB-INF/applicationContext-semanticLayer.xml The *SQLGenerator beans define mapping from a function name to the SQL that gets generated. You need something like: <entry key="today"> <value>"now"</value> </entry> where "now" is something that will work for your flavour of database. There are different mappings available for the different databases. ShermanJaspersoft 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