TsgcWSPServer_Dataset › Events › OnAfterUpdateRecord
Fires after the server successfully updates a client-originated record.
property OnAfterUpdateRecord: TsgcWSAfterRecordEvent;
// TsgcWSAfterRecordEvent = procedure(Connection: TsgcWSConnection; const Dataset: TDataset) of object
—
Raised once the incoming update has been posted to the DataSet and the new record state is broadcast to peer clients. Dataset is positioned on the just-updated row, with the final values applied. Use this hook to audit, log or chain dependent updates after a remote edit is committed on the server side.
procedure TForm1.oProtocolAfterUpdateRecord(Connection: TsgcWSConnection;
const Dataset: TDataset);
begin
Memo1.Lines.Add('updated by ' + Connection.Guid);
end;