Datasnap.Midas.IAppServer.AS_RowRequest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  AS_RowRequest(const ProviderName: OleStr; Row: OleVariant; RequestType: Integer;  var OwnerData: OleVariant): OleVariant; safecall;

C++

virtual HRESULT __safecall AS_RowRequest(const System::WideString ProviderName, System::OleVariant Row, int RequestType, System::OleVariant &OwnerData, System::OleVariant &__AS_RowRequest_result) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Midas.pas
Datasnap.Midas.hpp
Datasnap.Midas IAppServer


Description

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

Client datasets call 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 BeforeRowRequest event handler. This information is passed to the provider's BeforeRowRequest event handler. OwnerData returns custom information supplied by the provider's AfterRowRequest event handler.

The requested data is returned as a delta packet in AS_RowRequest _result (C++).

See Also