TsgcWSPServer_DatasetMethods › Synchronize

Synchronize Method

Sends every row of the server dataset to the given client connection.

Syntax

procedure Synchronize(aConnection: TsgcWSConnection);

Parameters

NameTypeDescription
aConnectionTsgcWSConnectionClient connection that will receive the dataset snapshot; use the Connection passed by OnConnect or obtain it from Server.Connections.

Remarks

Wraps the row traversal in a synchronize.start/synchronize.end pair so the client knows when the snapshot begins and ends, walks every record in the assigned DataSet from the first to the last and dispatches each one on the dataset update channel. Call this method when AutoSynchronize is False, or any time you need to re-send the full data set (for example after the client applies a local filter reset).

Example

procedure TForm1.oProtocolConnect(Connection: TsgcWSConnection);
begin
  oProtocol.Synchronize(Connection);
end;

Back to Methods