Hey there,

Sorry for my ignorance.  Trying to test out <cfchart>.  Having trouble with
using a date in the where clause of my query.  I know I am more than likely
doing something really dumb and imagine the solution is quite simple.  So,
before I spend more hours trying to figure this out...Thought I would ask
for help.  Here is the code:

<cfmodule template="#Request.layout#/Header.cfm" pageType="JobAdmin">

<cfset session.reportdate = 1>
<cfset session.associate = 23>
<cfset session.reportDate eq '09/14/05'>
<cfset session.jobId = 26>
<cfquery name="test" datasource="mdfinish">
SELECT Associate, Job, ReportDate, TotalHours
FROM TimeCard
WHERE TimeCard.Associate = session.Associate AND timeCard.ReportDate =
#createodbcDate ("session.ReportDate")# and TimeCard.job = #session.jobId#
</cfquery>


<cfchart chartwidth="600">
        <cfchartseries  type="bar">
                <cfchartdata item="Total Hours" value="#test.totalhours#">

        </cfchartseries>
</cfchart>

<cfmodule template="#Request.layout#/Footer.cfm">




Here is the error message:

Parameter validation error for function CREATEODBCDATE.
The value of the parameter 1, which is currently "session.ReportDate", must
be a class java.util.Date value.

Thanks,

Mark



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218339
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to