Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFGRAPH

Status
Not open for further replies.

takethapowerback

IS-IT--Management
May 2, 2001
13
US
Hey guys! Im a newbie at this coldfusion stuff and Im trying to use the <cfgraph> to generate some reports for work but I keep getting errors. If any of you guys can help me I would greatly appreciate it. Here's the code below..


<cfquery name=&quot;getresults&quot; datasource=&quot;#db#&quot;>
SELECT tblAgent.AgentID, tblAgent.CallDate, tblProblem.ProblemTitle, tblProblem.ProblemDescription, tblProblem.ProblemTypeID, tblProblemType.ProblemType
FROM tblProblemType INNER JOIN (tblProblem INNER JOIN tblAgent ON tblProblem.ProblemID = tblAgent.ProblemID) ON tblProblemType.ProblemTypeID = tblProblem.ProblemTypeID
WHERE tblAgent.CallDate >= #CreateODBCDate(Form.StartDate)#
AND tblAgent.CallDate <= #CreateODBCDate(Form.EndDate)#
</cfquery>


<cfoutput>
<cfgraph
type=&quot;pie&quot;
query=&quot;getresults&quot;
valuecolumn=&quot;#getresults.recordcount#&quot;
itemcolumn=&quot;ProblemType&quot;
fileformat=&quot;jpg&quot;
Title=&quot;Help Desk Report&quot;
Borderwidth=&quot;1&quot;
Depth=&quot;20&quot;>
</cfgraph>
</cfoutput>
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top