Hey Acoder,
I tried the line 14 onwards an well i had to take out the last cfoutput. An well when i looked at the test ticket with the serial that i filled in just a few fields it worked correctly. However, when i looked at the serial where no serial had been inserted it now makes the serial say serial #count# information
Thank you,
Rach
I tried the line 14 onwards an well i had to take out the last cfoutput. An well when i looked at the test ticket with the serial that i filled in just a few fields it worked correctly. However, when i looked at the serial where no serial had been inserted it now makes the serial say serial #count# information
Code:
<!--- Shows what was previously entered for Model No, Product Type, and Type of Hardware Failure ---> <div id="dynamic#count#Input"> <table class="zpExpandedTable" id="modeltable"> <th class="sectiontitletick" colspan="7"> Serial Information #count# </th> <tr> <td id="paddingformultitop">Model No: </td> </td> <td> <select name="modelno_#count#"> <option value="">Make A Selection</option> <cfloop query="models"> <option value="#model#">#model#</option> </cfloop> </select> </td> <td> Product Type: </td> <td> <select name="producttype_#count#"> <option value="" selected>No Choice</option> <cfloop query="getProdType"> <option value="#pk_productType#">#pk_productType#</option> </cfloop> </select> </td> <td class="red"> Type Of Hardware Failure*: </td> <td> <select name="hardwarefailure_#count#"> <option value="" selected>Make A Selection</option> <cfloop query="getHardwareFail"> <option value="#pk_hardwareFailure#">#pk_hardwareFailure#</option> </cfloop> </select> </td> </tr> <table> <!--- Shows what was previously entered for Serial Number and Software/Hardware ---> <table class="zpExpandedTable" id="modeltable"> <tr> <td id="paddingformultitop"> Serial Number: <input type="text" name="serialnum_#count#" value=""> Software/Hardware: <select name="softhardware_#count#"> <option value="" selected>No Choice</option> <cfloop query="getSoftHard"> <option value="#pk_softwareHardware#">#pk_softwareHardware#</option> </cfloop> </select> </td> </tr> </table> <!--- Shows what was previously entered for Description ---> <cfquery name="getnotes" dbtype="query" > SELECT * FROM notes WHERE fk_serialNo=<cfqueryparam value="#pka_serialNo#" cfsqltype="cf_sql_char" maxLength="20"> </cfquery> <cfloop query="getnotes"> <input type="hidden" name="pk_num_#count#" id="pk_num" value="" /></cfloop> <!---<div style="width: 150px; height: 150px; overflow-y: scroll; scrollbar-arrow-color:blue; scrollbar-face-color: #e7e7e7; scrollbar-3dlight-color: #a0a0a0; scrollbar-darkshadow-color:#888888;">---> <table class="zpExpandedTable" id="resoltable" cellpadding="3" cellspacing="0"> <tr><td id="paddingformutli"> Previously Submitted Descriptions:</td><td id="paddingformutli"> <div id="descriptionbox" style="HEIGHT:100px; WIDTH:500px; OVERFLOW:auto;" > <cfloop query="getnotes"> Added By: <br/> Dated Added: <br/><br/> <div id="line"></div> </cfloop></div></td> </tr> </table> <table class="zpExpandedTable" id="resoltable" cellpadding="3" cellspacing="0"> <tr> <!---<input type="hidden" name="thedescriptoin_#count#" id="thedescriptoin" value="#description#" />---> <td id="paddingformutli"> Description: </td> <td class="descriptionmoveinmulti"> ( You may enter up to 1000 characters. ) <br> <textarea maxlength='1000' onkeyup='return descriptionmaxlength(this)' onkeydown='return descriptionmaxlength(this)'rows='4' cols='60' name="thedescription_#count#"></textarea> </td> </tr> </table> <!---Shows what was previously entered for Resolution ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td id="paddingformutli"> Resolution: </td> <td class="resolutionmoveinmulti"> ( You may enter up to 1500 characters. ) <br> <textarea maxlength="1500" onKeyUp="return resolutionismaxlength(this)" onKeyDown="return resolutionismaxlength(this)" rows="4" cols="60" name="resolution_#count#"></textarea> </td> </tr> </table> <!--- Shows what was previously entered for Resolution Date, Current Date (for resolution date) and resolution vertified as effective by ---> <table class="zpExpandedTable" id="resoldatetab" cellpadding="1" cellspacing="0"> <tr> <td id="paddingformultitop"> Resolution Date: (MM/DD/YYYY) </td> <td> <input type="text" name="resdate_#count#" value=""> Current Date: <input type="checkbox" name="currentdateresol_#count#" onClick="resdate_#count#.value=fill_date()"> </td> <td> Resolution Verified as effective by: </td> <td> <select name="resvertified_#count#"> <option value="" selected>Make A Selection</option> <cfloop query="gettech"> <option value="#fname# #lname#">#fname# #lname#</option> </cfloop> </select> </td> </tr> </table> <!--- Shows what was previously entered for Vertification Date, Current Date (for vertification date) ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td id="paddingformultitop"> Verification Date: (MM/DD/YYYY) </td> <td class="vertificationmoveinmulti"> <input type="text" name="vertifidate_#count#" value=""> Current Date: <input type="checkbox" name="currentdatevert_#count#" onClick="vertifidate_#count#.value=fill_date()"> </td> </tr> </table> <!--- Shows what was previously entered for Dept/Vendor Responsibility ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td class="red" id="paddingformultitop"> Dept/Vendor Responsibility*: <select name="deptvendor_#count#"> <option value="" selected>Make A Selection</option> <cfloop query="getDeptVendor"> <option value="#pk_deptVendor#">#pk_deptVendor#</option> </cfloop> </select> </td> </tr> </table> <input type="hidden" name="serialcount" id="serialcount" value="#count#"> <!--- Adds Delete to every ticket ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td> <input type="button" class="removeticket" value="Remove Serial #count#" onClick="removeElement('dynamic#count#Input')"> </td> </tr> <tr> <td> <input type="button" class="addticket" value="Add Parts" onClick="addpartInput('dynamic#count#Input')"> </td> </tr> </table> <!---Shows what was previously entered into parts table---> <!---dbtype="query"---> <cfquery name="getparts" dbtype="query" > SELECT * FROM parts WHERE fk_serialNo=<cfqueryparam value="#pka_serialNo#" cfsqltype="cf_sql_char" maxLength="20"> </cfquery> <cfset count1 = 0> <!---<cfif serial.recordcount is 0>---> <cfloop query="getparts"> <cfset count1 = count1 + 1> <div id="part#count1#Name#count#"> <!---<cfset partliststr = ""> <cfloop from="1" to="#count1#" index="pl"> <cfset partliststr = partliststr & #pl# & ","> </cfloop> <input type="hidden" name="part2count#count#" id="part2count#count#" value="#partliststr#"> <input type="hidden" name="partscount#count#" id="partscount#count#" value="#count1#">---> <!---THIS IS THE PARTS SECTION---> <input type="hidden" name="pkpartID_#count1#_#count#" id="pkpartID" value="" /> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <th class="sectiontitle" colspan="7">Parts Information #count1# Serial Information #count#</th> <tr> <td class='indent' id='formfieldpadding'>HC P/N: <input type='text' name="hcpn_#count1#_#count#" style="margin:0px" value=""></td> <td> Parts been returned* <input type="checkbox" name="partsreturn_#count1#_#count#" value=""/> </td> <td> <td class="indent">Defective<input type="checkbox" name="defective_#count1#_#count#"/></td> </td> </tr> </table> <!---<input type="hidden" name="partscount#count#" id="partscount#count#" value="#count#">---> <!--- Shows what was previously entered for RMA Data Only ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td id="paddingformultitop"> RMA Data Only: </td> <td class="rmanmoveinmulti"> ( You may enter up to 1000 characters. ) <br/> <textarea maxlength="1000" onKeyUp="return rmaismaxlength(this)" onKeyDown="return rmaismaxlength(this)" rows="4" cols="60" name="rma_#count1#_#count#" ></textarea> </td> </tr> </table> <!--- Adds Delete to every ticket ---> <table class="zpExpandedTable" id="resoltable" cellpadding="1" cellspacing="0"> <tr> <td> <input type="button" class="removeticket" value="Remove Parts #count1#" onclick="removetheElement('part#count1#Name#count#',#count#,#count#)"></a> </td> </td> </tr> </table> </div> <input type="hidden" name="partscount#count#" id="partscount#count#" value="#count1#"/> </cfloop> </div> <!---this one makes it so you can add a part to a previously submitted serial---> <input type="hidden" name="partcounter#count#" id="partcounter#count#" value="#count1#" />
Rach
Comment