TsgcWSPServer_Dataset › Events › OnAfterUpdateRecord

OnAfterUpdateRecord Event

Fires after the server successfully updates a client-originated record.

Syntax

property OnAfterUpdateRecord: TsgcWSAfterRecordEvent;
// TsgcWSAfterRecordEvent = procedure(Connection: TsgcWSConnection; const Dataset: TDataset) of object

Default Value

—

Remarks

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.

Example

procedure TForm1.oProtocolAfterUpdateRecord(Connection: TsgcWSConnection;
  const Dataset: TDataset);
begin
  Memo1.Lines.Add('updated by ' + Connection.Guid);
end;

Back to Events