Datasnap.Provider.TBaseProvider.LocateRecord

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Datasnap.Provider.pas
Datasnap.Provider.hpp
Unit: Datasnap.Provider
Parent: TBaseProvider

Delphi

procedure LocateRecord(Source, Delta: TDataSet); virtual;

C++

virtual void __fastcall LocateRecord(Data::Db::TDataSet* Source, Data::Db::TDataSet* Delta);

Description

Positions a dataset on the record that corresponds to the current update in a specified delta packet.

LocateRecord is called indirectly by the RowRequest method to locate a record before fetching information about a specified record. The Source parameter is the dataset containing current record values. The Delta parameter is a delta packet that identifies the desired type of information and information identifying the desired record.

As implemented in TBaseProvider, LocateRecord does nothing. Descendants override this method to locate the specified record in Source and navigate to it.

See Also