RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetAdapterMoveRowAction.ImplIsDefaultAction Method

Provides the underlying implementation for the IsDefaultAction method.

Pascal
function ImplIsDefaultAction(ADisplay: TObject): Boolean; override;
C++
virtual __fastcall Boolean ImplIsDefaultAction(TObject * ADisplay);

The IsDefaultAction calls ImplIsDefaultAction to determine whether this action should be added, by default, to the parent adapter. Default actions are added to the adapter unless you explicitly specify the actions of the parent adapter.  

ADisplay is the Web item associated with the parent adapter that generates HTML content to represent the adapter's fields and actions. This item is a member of the hierarchy of Web items rooted by a TAdapterForm object. 

ImplIsDefaultAction returns true if this action should be included among the adapter's default actions, false if it should only be included when explicitly added to the parent adapter. 

ImplIsDefaultAction always returns false when the parent adapter is in query mode. When the parent adapter is in any other mode, ImplIsDefaultAction checks whether ADisplay has a GetAdapterDisplayCharacteristics method. If ADisplay can provide display characteristics, ImplIsDefaultAction returns true only if those characteristics indicate an ability to change the current record. If ADisplay can't provide displaycharacteristics, ImplIsDefaultAction returns true. 

 

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