Originally posted by acoder
Alrighty i made the querys on the cticketpage2edi t.cfm into this
Code:
<cfquery name="serial" datasource="CustomerSupport">
SELECT pka_serialNo,pkb_fk_ticketNo,model_no,product_type,software_hardware,
resolution,resolution_date,verification_date,type_hardware_failure,
dept_responsibility,resolution_verified_by
FROM dbo.tbl_CS_serial
WHERE pkb_fk_ticketNo = #URL.pk_ticketID#
</cfquery>
<!---Shows what was previously entered into parts table--->
<cfquery name="parts" datasource="CustomerSupport">
SELECT pk_partID,fk_serialNo,fk_ticketNo,hc_partNo,ltrim(rtrim(part_returned)) as part_returned,rma_number,defective
FROM dbo.tbl_CS_parts
WHERE fk_ticketNo = #URL.pk_ticketID#
</cfquery>
<!---Shows what was previously entered into description table--->
<cfquery name="description" datasource="CustomerSupport">
SELECT fk_serialNo,fk_ticketNo,description
FROM dbo.tbl_CS_notes_descr
WHERE fk_ticketNo = #URL.pk_ticketID#
</cfquery>
Code:
<cfloop query="description">#description#</cfloop>
Expression result cannot be converted to a string
Expressions used inside tags like CFOUTPUT, CFQUERY, CFMAIL, etc. must evaluate to a value that can be converted to a string for output or dynamic text accumulation purposes. Complex objects, such as queries, arrays, and COM/DCOM objects, cannot be represented as strings.
also wanted to ask would it be ok to go back to updating/inserting previously submitted serials and parts instead of deleting them? asking since inserting into serial and parts is not the problem and would be nice to be able to just update them instead. which i am sorry for making you go through all the deleting now, i wish i would of known what i do now back a week or 2 ago. i should of tested more, i should of thought about everything i had instead of just the javascript and html so i am sorry for putting you through all the extra work.
besides that i only have 2 problems left (as far as i know). For some reason when i update if i have a serial and part. When i come back to look it will not display the part anymore an only show a serial. The second problem i have is a similar problem with parts. If i add serials 1 and 3 and submit it i get the error of it asking for serial 2 an was wondering if we could make it where if a user does not submit a serial 2 it will still work ok.
Thank you,
Rach
Comment