Datasnap.Midas.IAppServerDisp.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; dispid 20000005;

Properties

Type Visibility Source Unit Parent
function automated Datasnap.Midas.pas Datasnap.Midas IAppServerDisp

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