Hi,
How to Catch precise errors if data processor update DB failure
Any Coding samples for reference?
I am using .NET with grid and connector.
Looking forward to your reply ASAP!
Thanks.
Hi,
How to Catch precise errors if data processor update DB failure
Any Coding samples for reference?
I am using .NET with grid and connector.
Looking forward to your reply ASAP!
Thanks.
Hi,
you can catch error either on server or client.
On the client it’s onAfterUpdate event of the dataprocessordp.attachEvent("onAfterUpdate", function(sid, action, tid, tag){
if (action == "error"){
//do something
}
})
on server you can use dhtmlxConnector.OnDBError event.[code]connector.OnDBError += new EventHandler(error_details);
public void error_details(object sender, DataActionProcessingEventArgs args)
{
Log( args.DataAction.Details );
}[/code]Here is related docs:
docs.dhtmlx.com/doku.php?id=dhtm … nt_dberror
docs.dhtmlx.com/doku.php?id=dhtm … fterupdate
you can also check “Database error” sample of the connectors package