RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDispatcher.OnBeforeDispatchAction Event

Occurs before the dispatcher forwards an action to an adapter for execution.

Pascal
property OnBeforeDispatchAction: TDispatchActionHandledEvent;
C++
__property TDispatchActionHandledEvent OnBeforeDispatchAction;

Write an OnBeforeDispatchAction event handler to respond to action requests before they are forwarded to the associated adapter for execution. Note that if the request does not request the execution of an action, the Params parameter of the event handler is nil (Delphi) or NULL (C++). 

If the OnBeforeDispatchAction event handler does not set its Handled parameter to true, the adapter dispatcher forwards the request to the identified adapter that is the value of the Action parameter. If the event handler sets Handled to false, the dispatcher does not forward the request to the adapter for execution, and does not generate an OnAfterDispatchAction event.

Tip: Use the Response property of the current Web context to access the response message from the OnBeforeDispatchAction event handler. You can obtain a reference to the Web context by calling the global WebContext function.
 

 

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