RAD Studio VCL Reference
|
Returns the style of the HTML control to use for editing this adapter field.
function GetInputStyleType(const AAdapterMode: string): TAdapterInputHTMLElementType; override;
virtual __fastcall TAdapterInputHTMLElementType GetInputStyleType(const AnsiString AAdapterMode);
GetInputStyleType returns the recommended type of control to use for editing 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 |
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, GetInputStyleType always returns htmliFile, indicating that the default control is a file upload element.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|