TsgcWSPServer_DatasetMethods › BroadcastRecord

BroadcastRecord Method

Broadcasts the current record of the server dataset to every connected client.

Syntax

procedure BroadcastRecord;

Remarks

Serialises the record currently pointed at by the assigned DataSet and sends it on the dataset update channel so every subscribed client raises OnAfterUpdateRecord (or OnAfterNewRecord) and mirrors the change. Use this method to push a row manually when NotifyUpdates is False, or after computing values in memory without posting through the dataset events.

Example

FDQuery1.Edit;
FDQuery1.FieldByName('Price').AsCurrency := 99.90;
FDQuery1.Post;
oProtocol.BroadcastRecord;

Back to Methods