SimpleDS.TSimpleDataSet.AfterGetParams
Delphi
property AfterGetParams;
C++
__property AfterGetParams;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | SimpleDS.pas SimpleDS.hpp |
SimpleDS | TSimpleDataSet |
Description
Occurs after the client dataset receives parameter values from the provider.
SimpleDS.TSimpleDataSet.AfterGetParams inherits from Datasnap.DBClient.TCustomClientDataSet.AfterGetParams. All content below this line refers to Datasnap.DBClient.TCustomClientDataSet.AfterGetParams.
Occurs after the client dataset receives parameter values from the provider.
Write an AfterGetParams event handler to respond to custom information returned to the client dataset from a provider's AfterGetParams event handler. AfterGetParams is part of the mechanism by which a client dataset and a provider communicate information when the client application calls FetchParams. When working with a provider on a stateless application server, this mechanism allows the client dataset and the provider to communicate persistent state information.
When the application calls the client dataset's FetchParams method, the following events occur:
- The client dataset receives a BeforeGetParams event, where it can encode custom information into an OleVariant that is passed to the provider as the
OwnerData
parameter. - The provider receives a BeforeGetParams event, where it can respond to or change that information before it retrieves parameter values.
- The provider encodes all of its dataset's current parameter values into an OleVariant.
- 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. - The client dataset unpacks the parameters from the provider into the Params property and then receives an AfterGetParams event, where it can respond to the custom information returned by the provider's AfterGetParams event handler.
AfterGetParams is an event handler of type Datasnap.DBClient.TRemoteEvent.