Datasnap.Provider.TBaseProvider.OnDataRequest
Delphi
property OnDataRequest: OleVariant read FOnDataRequest write FOnDataRequest;
C++
__property OnDataRequest;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | public | Datasnap.Provider.pas Datasnap.Provider.hpp |
Datasnap.Provider | TBaseProvider |
Description
Occurs when a provider calls its DataRequest method. {{#multireplace:Datasnap.Provider.TBaseProvider.OnDataRequest|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Datasnap.Provider.TCustomProvider.OnDataRequest|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Datasnap.Provider.TCustomProvider.OnDataRequest|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Occurs when a provider calls its DataRequest method.
Write an OnDataRequest event handler to do custom processing of data. OnDataRequest has no built-in use. Instead, it allows developers to augment the IAppServer interface so that clients in a multi-tiered application can communicate directly with an individual provider.
If an application does not provide an OnDataRequest event handler, calls to DataRequest return NULL.
Note: To provide the same sort of custom processing on the client side, use an automation method on the connection component.
OnDataRequest is of type Datasnap.Provider.TDataRequestEvent