GetTaskProgress gets date1 and receives driverid, pdrivername, ordercount and oordercountwherename isnotnull – I have a syntax error which cannot call my function and receive data.
Please check my code here:
_Services.invoke({
method: 'GetTaskProgress',
data: { xDATEx: date1 },
success: function (q) {
paint(q);
}
This is the function that needs to be called:
function paint(orders) {
var table = $('#progressgrid')
'<table>';
$.each(orders, function() {
table +=
'<tr>'+
'<td>'+this.DriverId +'</td>'+
'<td>'+this.PdriverName +'</td>'+
'<td>'+this.OrderCount +'</td>'+
'<td>'+this.OrderCountWhereNameIsNotNull +'</td>'+
'</tr>';
});
table+=
'</table>';
table=$(progressgrid);
div.append(table);
}
This is my client div:
<div id="progressgrid"></div>
the
divfromdiv.append(table)isn’t defined. Shouldn’t be a syntax error, but it is an error. the invoke method is also missing a closing}and)(in your first example)and