I'm trying to get the records of the next object
If I open it, show my data
And I'm trying to get them out and put them in a tbody but I do not have any left.
This is my code.
success: function(data) {
var html = '';
var i;
for (i = 0; i < data.length; i++) {
html += '<tr>' +
'<td>' + data.todas_calls[i].calldate + '</td>' +
'</tr>';
i++;
}
$('#reg_tabla').html(html);
},
Data I get from the attributes of the bd
{
accountcode: "financiera_arc-in",
amaflags: "3",
billsec: "5",
calldate: "2018-05-01 08:46:43",
channel: "SIP/TRK-4422901000-00001cf9",
clid: "\"FINANCIERA ARC\" <4773256472>",
dcontext: "virtual",
disposition: "ANSWERED",
dst: "564",
dstchannel: "SIP/corp_lomas-500-00001cfa",
duration: "25",
lastapp: "Playback",
lastdata: "vm1&vm_financiera_arc&vm2",
src: "4773256472",
userfield: ""
}