Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

help, stuck on date range as cfreportparam

$
0
0
Hi all,

i'm running this and getting the follwing error:

Code:

<cfreport template="invoice_many.cfr" format="pdf" >
<cfreportparam name="from" value="2007-01-01">
<cfreportparam name="to" value="2008-01-01" >
</cfreport>

Error:

Report data binding error Incompatible java.lang.String value assigned to parameter from in the ColdFusionReport dataset..'"

I've tried this in the report query:
.....query.....
AND orders.date_placed >= '#param.from#'
AND orders.date_placed <= '#param.to#'

as well as this:
....query....
AND <cfqueryparam value="#param.to#" cfsqltype="CF_SQL_TIMESTAMP>
AND <cfqueryparam value="#param.to#" cfsqltype="CF_SQL_TIMESTAMP">

no luck i'm stuck! Any ideas would be appreciated.. I'm in Australia so not sure if this affects the date / time params as we run date format dd-mm-yyyy..

Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>