dataProc.attachEvent(“onAfterUpdate”, function(sid, action, tid, tag)
Does “tag” contain any useful information if table update fails (something like Duplicate entry ‘mmm’ for key ‘key1’)? tag.getAttribute(“message”) is empty.
Thank you.
dataProc.attachEvent(“onAfterUpdate”, function(sid, action, tid, tag)
Does “tag” contain any useful information if table update fails (something like Duplicate entry ‘mmm’ for key ‘key1’)? tag.getAttribute(“message”) is empty.
Thank you.
By default it doesn’t contain such info ( responding error text in production environment is not secure )
You can use connector’s API to store extra in response
docs.dhtmlx.com/connector__php__ … eattribute
And later, use the onAfterUpdate event and read those extra data from the “tag”
Ah, I was confused how to catch exception. I have to use afterDBError(DataAction rowAction, Throwable e) that is not mentioned in documentation.
Thank you.