Datasnap.Provider.TDataSetProvider.AfterGetParams

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AfterGetParams;

C++

__property AfterGetParams;

Properties

Type Visibility Source Unit Parent
event published
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TDataSetProvider

Description

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

Datasnap.Provider.TDataSetProvider.AfterGetParams inherits from Datasnap.Provider.TCustomProvider.AfterGetParams. All content below this line refers to Datasnap.Provider.TCustomProvider.AfterGetParams.

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

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.

AfterGetParams is of type Datasnap.DBClient.TRemoteEvent.


See Also