diff --git a/Customers/LKWs.aspx b/Customers/LKWs.aspx index 8a742df..ed68fb0 100644 --- a/Customers/LKWs.aspx +++ b/Customers/LKWs.aspx @@ -175,13 +175,16 @@ function addRow(table1,par1,par2,par3,par4) { let tableRef = table1; - let newRow = tableRef.insertRow(-1); - - let newCell = newRow.insertCell(0); - let newCell1 = newRow.insertCell(1) - let newCell2 = newRow.insertCell(2) - let newCell3 = newRow.insertCell(3) + let newRow = tableRef.insertRow(); + let newCell = newRow.insertCell(); + let newCell1 = newRow.insertCell() + let newCell2 = newRow.insertCell() + let newCell3 = newRow.insertCell() + newCell.create + newCell1.create + newCell2.create + newCell3.create newCell.innerHTML = par1 newCell1.innerHTML = par2 newCell2.innerHTML = par3 @@ -196,16 +199,19 @@ let newCell1 = newRow.insertCell(1) let newCell2 = newRow.insertCell(2) let newCell3 = newRow.insertCell(3) - + newCell.create + newCell1.create + newCell2.create + newCell3.create newCell.innerHTML = par1 newCell1.innerHTML = par2 newCell2.innerHTML = par3 newCell3.innerHTML = par4 } function TableRowClick_M(listtemp_M, Kennzeichen, Nat) { - let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>") - let natplaceholder = document.getElementById("<%=lbl_Placeholder_M.ClientID%>") - + let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>") + let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>") + Speditionslabel.textContent = Kennzeichen natplaceholder.textContent = Nat @@ -214,17 +220,19 @@ tb.deleteRow(1); } - const arr2 = Array.from(listtemp_M.split(";")); - for (let i = 0; i < arr2.length; i++) { - let SDLNr = arrint[i]; - let Bez = arrint[i++]; - let Gueltigbis = arrint[i++]; - let KartenNr = arrint[i++]; + const arr2 = Array.from(listtemp_M.split(";")); + //debugger + //alert(Arr) + for (let arrint_M of arr2) { + let SDLNr = arrint_M + let Bez = arrint_M + let Gueltigbis = arrint_M + let KartenNr = arrint_M //alert(SDLNr) //alert(Bez) //alert(Gueltigbis) - //alert(KartenNr) - addRow(<%=tbl_mainpage_M%>,SDLNr, Bez, Gueltigbis, KartenNr) + //alert(KartenNr) + addRow(<%=tbl_mainpage_M.ClientID%>, SDLNr, Bez, Gueltigbis, KartenNr) } }