RAD Studio VCL Reference
|
Returns the view mode for the function a control that represents this field should perform.
function GetViewModeType(const AAdapterMode: string): TAdapterDisplayViewModeType; virtual;
virtual __fastcall TAdapterDisplayViewModeType GetViewModeType(const AnsiString AAdapterMode);
GetViewModeType returns the recommended type of control (edit or display) to use for this field's value in HTML forms.
AAdapterMode indicates the current mode of the parent dataset adapter. It is one of the following values:
Value |
Mode |
Meaning |
Insert |
amInsert |
The control is to be used for entering a field value in a newly inserted record. |
Edit |
amEdit |
The control is to be used for editing the current field value. |
Browse |
amBrowse |
The control is to be used for read-only display. |
Query |
amQuery |
The control is to be used for entering a criterion to use in a generated query. |
In TBaseDataSetAdapterField, GetViewModeType returns htmlvmDisplay if the associated field is read-only or AAdapterMode indicates that the parent adapter is in browse mode (amBrowse). Otherwise, it returns htmlvmInput.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|