Hello All... I'm trying to figure out what error is happening here. Coldfusion
just gives me back nothing...literally. It just says there's an error and it
highlights this line. But no more information is given as to what is causing
the problem.
I've already checked out my array of structures and it is being filled with the
correct data.
Error line that CF highlights:
<cfloop collection="#arr_AllJobs[i].qry_candidates#" item="j">
The #arr_AllJobs[i].qry_candidates# holds a query object. I've tried looping
with <cfloop collection and query, but both return the same vague error.
Any ideas? am I missing something obvious? Perhaps CF doesn't like this process
inside a cfmail tag.
*arr_AllJobs* is an array of all the jobs we have with responses.
in each array element is a structure of the following items.
job_title, job_ref, job_views, job_responses, job_datePoted
Full Code:
<cfmail to="#myemaddress#" from="#myfromaddress#" subject="#mysubject#"
type="html">
<!--- loop through all the items --->
<cfloop from="1" to="#arraylen(arr_AllJobs)#"
index="i">
<b>JOB TITLE :</b> #arr_AllJobs[i].job_title#<br>
<b>JOB REFERENCE :</b> #arr_AllJobs[i].job_ref#<br>
<b>JOB VIEWS:</b> #arr_AllJobs[i].job_views#<br>
<b>JOB RESPONSES:</b> #arr_AllJobs[i].job_responses#<br>
<b>DATE POSTED:</b>
#arr_AllJobs[i].job_datePosted#<br><br>
<b>RESPONSE BREAKDOWN:</b><br>
<cfloop
collection="#arr_AllJobs[i].qry_candidates#" item="j"><!--- loop through all
responses --->
<a
href="mailto:#urlDecode(candidate_email)#">#urlDecode(candidate)#</a>
(#urlDecode(candidate_email)#)
</cfloop>
</cfloop>
</cfmail>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224163
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