I have a Table $("#tablaOficinista").DataTable();
I can add:
<tr>
<td>nombre_persona</td>
<td>apellido_persona</td>
<td>cedula_persona</td>
<td>telefono_persona</td>
<td>verificado</td>
<td>fecha_pase</td><td>"mover"</td>
</tr>
With their respective id's, example:
<tr id="100">...</tr>
I add them with the following code:
var tablaOficinista = $("#tablaOficinista").DataTable();
I create a new row:
var html = [pases.nombre_persona, pases.apellido_persona, pases.cedula_persona, pases.telefono_persona, pases.verificado, pases.fecha_pase, "mover"];
I add the new row:
var tr = tablaOficinista.row.add(html).draw(false).node();
$(tr).attr("id", pases.id_pase);
The problem is that you have to consult the new id's, just inserted when I do:
tablaOficinista.rows().ids();
this comes out:
{"99":"99",
"100":"undefined",
"101":"undefined",
"102":"undefined",
"103":"undefined",
"104":"undefined",
"105":"undefined",
"106":"undefined",
"107":"undefined",
"108":"undefined",
"109":"undefined",
"110":"undefined",
"110":"undef...}
if you insert the <tr>
with your step_id and its data, but inside the jquery database DataTable (). rows (). ids () you only see "undefined";
That is, in the console when you place $("#tablaOficinista").DataTable().row("100").id();
it goes out "undefined"
How do I insert a new ID to the DataTable () in its .rows (). ids ()?