Datasnap.Provider.TBaseProvider.LocateRecord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TBaseProvider

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