RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.AfterGetParams Event

Occurs after the provider creates an OleVariant containing parameter values to send to the client dataset.

Pascal
property AfterGetParams: TRemoteEvent;
C++
__property TRemoteEvent AfterGetParams;

Write an AfterGetParams event handler to send custom information to a client dataset when returning parameters from the provider's dataset. AfterGetParams is part of the mechanism by which a provider and a client dataset communicate information about parameter values. When the provider is part of a stateless application server, this mechanism allows the provider and the client dataset to communicate persistent state information. 

When the client dataset calls the AS_GetParams method of the IAppServer interface, the following events occur: 

1.The provider receives a BeforeGetParams event, where it can respond to or change custom information that the client dataset sends. 

2.The provider looks up the parameter values, if appropriate, and encodes them in an OleVariant. 

3.The provider receives an AfterGetParams event, where it can encode custom information into its OwnerData parameter or respond to information from the BeforeGetParams event handler. 

4.The client dataset receives an AfterGetParams event, where it can respond to the custom information returned by the provider in its AfterGetParams event handler. 

 

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