RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomProvider.OnDataRequest Event

Occurs when a provider calls its DataRequest method.

Pascal
property OnDataRequest: TDataRequestEvent;
C++
__property TDataRequestEvent OnDataRequest;

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.
 

 

DataRequest 

IAppServer 

Communicating with Providers Using Custom Events 

Communicating with the Client Dataset 

Responding to Client-generated Events

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