RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.LocateRequestRecord Method

Positions the dataset based on the parameters in the current request.

Pascal
function LocateRequestRecord(AActionRequest: IActionRequest): Boolean;
C++
__fastcall Boolean LocateRequestRecord(IActionRequest AActionRequest);

LocateRequestRecord tries to position this adapter's dataset on the record identified by parameters it extracts from the current request. Unlike the Locate method, LocateRequestRecord does not use or set the LocateParamsList property, nor does it concern itself with any datasets linked in a master/detail relationship. 

AActionRequest is an interface to the request object from which LocateRequestRecord obtains key field parameters. 

LocateRequestRecord returns true if it successfully positions the dataset on the specified record. LocateRequestRecord returns false if it was unable to position the dataset on the specified record. If LocateRequestRecord returns false, it adds a message to the Errors property describing the problem. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!