problem with additional data in update response

I’m trying to update additional cell data in a grid row when an update has occured on the row, but I’m getting an error and the cell isn’t updated

I have attached the following to the dataprocessor for the grid:

dp.defineAction(“updated”, function (sid, response)
{
var sid = response.getAttribute(“sid”);
var total_amount = response.getAttribute(“total_amount”);
this.obj.cells(sid, 5).setValue(total_amount);
return true;
});

According to the debug window the response is correct (see attached capture.png).

The browser throws a javascript error (see attached capture2.png)
And the line 113 mentioned is the first line in the eventhandler:
var sid = response.getAttribute(“sid”);

It appears that somehow either the response is null or the sid is null although the debug window shows otherwise… What can be causing of this?



Only one parameter is passed to the “updated” handler - it is action tag from xml response:

dp.defineAction("updated", function (response)

Ok the code was taken from your own example here (docs.dhtmlx.com/doku.php?id=dhtm … mmon_tasks), so you might wanna take a look at that.

Also one could think that “this.obj.cells” makes sense within the event handler, but in my case at least it doesn’t, it should be replaced with “grid.cells”.

It works now though looking like this:

dp.defineAction(“updated”, function (response)
{
var sid = response.getAttribute(“sid”);
var total_amount = response.getAttribute(“total_amount”);
mygrid.cells(sid, 5).setValue(total_amount);
return true;
});

Thanks

Thank you for your note, we will fix documentation as soon as possible