Hey Everyone,
i been working on trying to understand the URL method of retrieving information for the last week, but i am stuck. I been able to get one table of information, but now i need to get 3 tables of information at the same time an i am running into trouble. Each table has a number in common with the other, each has a field that holds the number (but fields have different name). For example ticketMaster table has the field pk_ticketID which holds the number 1, serial has the field pkb_fk_ticketNo which holds the number 1, and parts has the field fk_ticketNo which holds the number 1. Right now i can get the correct table information for ticketMaster but for the serial an parts i get all the records that are in those tables instead of just the one record needed, which in this case is the one record that holds the number 1.
Right now here is what i have
if anyone could explain to me how to get the url method to work with 3 fields in 3 different tables i would really appreciate it.
Thank you in advance,
Rach
i been working on trying to understand the URL method of retrieving information for the last week, but i am stuck. I been able to get one table of information, but now i need to get 3 tables of information at the same time an i am running into trouble. Each table has a number in common with the other, each has a field that holds the number (but fields have different name). For example ticketMaster table has the field pk_ticketID which holds the number 1, serial has the field pkb_fk_ticketNo which holds the number 1, and parts has the field fk_ticketNo which holds the number 1. Right now i can get the correct table information for ticketMaster but for the serial an parts i get all the records that are in those tables instead of just the one record needed, which in this case is the one record that holds the number 1.
Right now here is what i have
Code:
<!---Shows what was previously entered into table ticketmaster---> <cfquery name="ticket" datasource="CustomerSupport"> SELECT pk_ticketID,title,priority,status, cost_center,fk_customer_number, customer_company,customer_Fname,customer_Lname, customer_add1,customer_city,customer_state, customer_zip,customer_email,customer_pri_phone, customer_sec_phone,customer_notes,htpp FROM dbo.tbl_CS_ticketMaster WHERE pk_ticketID = #URL.pk_ticketID# </cfquery> <cfquery name="serial" datasource="CustomerSupport"> SELECT pka_serialNo,pkb_fk_ticketNo,model_no,product_type , software_hardware,resolution,resolution_date, verification_date,rma_data, type_hardware_failure,dept_responsibility,resoluti on_verified_by FROM dbo.tbl_CS_serial </cfquery> <cfquery name="parts" datasource="CustomerSupport"> SELECT pk_partID,fk_serialNo,fk_ticketNo,hc_partNo, part_returned,defective,submission FROM dbo.tbl_CS_parts </cfquery> <form name="page1" id="page1" action="saveticket1edit.cfm?<cfoutput query="ticket">pk_ticketID=#pk_ticketID#</cfoutput><cfoutput query="serial">&pkb_fk_ticketNo=#pkb_fk_ticketNo#</cfoutput><cfoutput query="parts">&fk_ticketNo=#fk_ticketNo#</cfoutput>" method="POST" onSubmit="return validate_form();"> </form>
Thank you in advance,
Rach
Comment