TsgcWSPClient_DatasetProperties › DataSet

DataSet Property

TDataSet instance that the component keeps in sync with the server.

Syntax

property DataSet: TDataSet read FDataSet write SetDataSet;

Default Value

Remarks

Assign any TDataSet descendant (TFDMemTable, TClientDataSet, TFDQuery, etc.) that the component will replicate. On assignment the component hooks BeforePost, BeforeDelete, AfterPost, OnNewRecord, AfterEdit and AfterCancel so that local changes are serialized as Dataset messages and sent to the server when NotifyUpdates is True. Incoming new/update/delete messages are applied back to this Dataset when ApplyUpdates is True.

Example

oProtocol.DataSet := FDMemTable1;
FDMemTable1.Open;

Back to Properties