Getting database id of a newly added row

I have a table with auto-increment id. When I insert a new row, I use 0 for the id, to get the next available. Then I need the actual id for my later scripts.

I have:


kgrid.addRow((new Date()).valueOf(),[lastid,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’],0)

After a successful addRow() I get:

<?xml version="1.0" encoding="UTF-8"?>

where tid is the id of my row in the database.

How can I get it?

This one says the sid only:


function Func(a,b,c)    {



Thank you


You need to catch dataProcessor callback, it can be done in next way

dp - dataprocessor object

    function my_handler(xml_node){
        return true;