RAD Studio |  |

Responding to Client-generated Events
See Also
Collapse All

Provider components implement a general-purpose event that lets you create your own calls from client datasets directly to the provider. This is the OnDataRequest event.

OnDataRequest is not part of the normal functioning of the provider. It is simply a hook to allow your client datasets to communicate directly with providers. The event handler takes an OleVariant as an input parameter and returns an OleVariant. By using OleVariants, the interface is sufficiently general to accommodate almost any information you want to pass to or from the provider.

To generate an OnDataRequest event, the client application calls the DataRequest method of the client dataset.

See Also

Controlling What Information Is Included in Data Packets

Responding to Client Data Requests

Handling Server Constraints

Responding to Client Update Requests

Choosing How to Apply Updates Using a Dataset Provider

Determining the Source of Data

Communicating with the Client Dataset

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