RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.ApplyAdapterMode Method

Sets the Mode property to reflect the value that the current request specifies.

Pascal
procedure ApplyAdapterMode(AActionRequest: IActionRequest);
C++
__fastcall ApplyAdapterMode(IActionRequest AActionRequest);

ApplyAdapterMode ensures that the dataset adapter is in the correct mode for handling the current HTTP request. If the current request specifies a mode for this dataset adapter, ApplyAdapterMode sets the Mode property to that value. If the current request specifies a mode for any adapter linked to this one in a master/detail relationship, ApplyAdapterMode sets that adapter's Mode property as well. If the current request does not specify a mode for this adapter (or one linked to it in a master/detail relationship), ApplyAdapterMode restores the adapter to its default mode (amBrowse).  

AActionRequest is an interface to the current request object. ApplyAdapterMode uses this to obtain the mode that the user requested, if any. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!