TsgcWSPServer_Dataset › Methods › Synchronize
Sends every row of the server dataset to the given client connection.
procedure Synchronize(aConnection: TsgcWSConnection);
| Name | Type | Description |
|---|---|---|
aConnection | TsgcWSConnection | Client connection that will receive the dataset snapshot; use the Connection passed by OnConnect or obtain it from Server.Connections. |
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).
procedure TForm1.oProtocolConnect(Connection: TsgcWSConnection);
begin
oProtocol.Synchronize(Connection);
end;