RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.GetDisplayStyleType Method

Returns the HTML display style type for this adapter field.

Pascal
function GetDisplayStyleType(const AAdapterMode: string): TAdapterDisplayHTMLElementType; virtual;
C++
virtual __fastcall TAdapterDisplayHTMLElementType GetDisplayStyleType(const AnsiString AAdapterMode);

GetDisplayStyleType returns the best way to display 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 field value is to be used for entering a value in a newly inserted record.  
Edit  
amEdit  
The field value is to be used for editing the current field value.  
Browse  
amBrowse  
The field value is to be displayed in a read-only manner.  
Query  
amQuery  
The field value represents a criterion to use in a generated query.  

In TBaseDataSetAdapterField, GetDisplayStyleType always returns htmldText, indicating that the value should appear as read-only text. Descendant classes override this to allow other display styles when necessary. 

 

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