george_17 Posted August 22, 2017 Share Posted August 22, 2017 Hi allin sheer frustration i stripped my query into simple terms...stepsi created the report initially without the where statement just to make sure all data was generated...then i created a Parameter renamed it as Message and set datatype to java.sql.Datethe date_added field on the database is datetime the content looks like 22/08/17 10:30but this sql select order_id, comment, date_added from oc_order where cast($P(Message) as datetime) > date_addedasks me to select a date from thecalendar 01/08/17 but pressing the run button i geterror generating reportand in the error log i get exception error executing sql statement for 1. I am hoping someone can make some suggestions as to what i am doing wrong.... thanks very much george Link to comment Share on other sites More sharing options...
mlopez_1 Posted August 23, 2017 Share Posted August 23, 2017 Try using:where $P{Message} > date_addedUsing {} and not ()If not, use $P{Message} as java.sql.TimestampMariano Link to comment Share on other sites More sharing options...
george_17 Posted August 23, 2017 Author Share Posted August 23, 2017 Mariano{} .... SUPERB ... PERFECTthank you sooooo much !!! george 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