RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.AfterExecute Event

Occurs after the provider passes an execute command to its dataset.

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

Write an AfterExecute event handler to return custom information to a client dataset after executing a query or stored procedure. AfterExecute is part of the mechanism by which a client dataset and a provider communicate information when executing queries or stored procedures that do not return a cursor. 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_Execute method of the IAppServer interface, the following events occur: 

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

2.The provider dispatches its Execute method to execute a query or stored procedure. 

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

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

 

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