TsgcWSPServer_DatasetProperties › DataSet

DataSet Property

TDataSet instance whose rows the server publishes to connected clients.

Syntax

property DataSet: TDataSet read FDataSet write SetDataSet;

Default Value

Remarks

Assign any TDataSet descendant (TFDQuery, TClientDataSet, TTable, etc.) that is already open. The component hooks the dataset's AfterPost, BeforeDelete and AfterRefresh handlers to broadcast changes to every connected client when NotifyUpdates is True, and replays the row set for each new client when AutoSynchronize is True. Change the assignment at runtime to swap the synchronised source on the fly.

Example

oProtocol.DataSet := FDQuery1;
FDQuery1.Open;

Back to Properties