Hello everybody,
I'm having strange problem with outputting reports using cfreport tag. When I test the report in Report Builder everything seems to work (I have one parameter - the date). Once I call the report from <cfifisDefined("Form.submitit")> block using <cfreport> and passing SelcetedDate parameter, report does not work (query returns no records).
If instead of calling <cfreport> from isDefined block I call another page, pass date via url and call <cfreport> from that extra page everything starts working again and I get the report.
My date is stored in MySQL 5 as date type. The query imbedded into report provides this definition parameter: <cfqueryparam value="#param.MyDate#" cfsqltype="CF_SQL_DATE">.
It looks to me that <cfreport> just can't be called from self submitting page. Can someone please confirm that? Am I missing something here? I'm new to ColdFusion and hope that I explain my problem clearly enough.
Any help is greatly appreciated.
Regards,
Chris