How to get Number of rows saved or updated

Hi,



I am using “myDataProcessor.sendData();” for saving bulk records.



Is there a way to display or comunicate the user the number of records saved(inserted, updated and deleted) into the database?



Thanksand Regards,

Pravu Mishra.




Hello,


there is onBeforeUpdate event. It occurs each time the record is send to the server. You can use it to get the number of updated rows.


var num = 0;

dp.attachEvent(“onBeforeUpdate”,function(rowId,state){
num++;
return true
})

function save(){
num=0;
dp.sendData()


}




Hi ,



This script looks like a client side count of records.



I need to get a message from the server regarding the number of records saved(inserted, updated or deleted).



Thanks and Regards,



pravu Mishra.



 


If you send all data at once (dp.setTransactionMode(“POST”,true)), you can pass the number of updated rows in the response xml.


Please, see details in the documenttation:


dhtmlx.com/docs/products/dhtmlxG … html#temu1