RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRemoteDataModule.AS_RowRequest Method

Returns information from a specified record of the provider's dataset.

Pascal
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; var OwnerData: OleVariant): OleVariant; safecall;
C++
__fastcall OleVariant AS_RowRequest(const BSTR ProviderName, OleVariant Row, int RequestType, OleVariant OwnerData);

Client datasets call AS_AS_RowRequest automatically to implement their FetchBlobs, FetchDetails , or RefreshRecord method. 

The ProviderName parameter indicates the provider associated with the dataset from which information should be fetched. 

The Row parameter is an OleVariant that describes the current record on the client dataset. 

The RequestType parameter indicates the type of information required. It is an integer version of the TFetchOptions type. (An integer because the value may be marshaled to a remote application server). To create a value for RequestType, take the corresponding TFetchOptions value, cast it to a Byte, and cast the result to an Integer:

Integer(Byte([foBlobs, foDetails]));
(int) (Byte) (TFetchOptions() << foBlobs << foDetails);

OwnerData contains custom information that is supplied by a client dataset's BeforeAS_RowRequest event handler. This information is passed to the provider's BeforeAS_RowRequest event handler. OwnerData returns custom information supplied by the provider's AfterAS_RowRequest event handler. 

The requested data is returned as a delta packet.

Note: Applications can only call the protected AS_AS_RowRequest method using the TRemoteDataModule interface.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!