RAD Studio VCL Reference
|
Returns a string value that indicates what function a control that represents this field should perform.
function GetViewMode(const AAdapterMode: string): string;
__fastcall AnsiString GetViewMode(const AnsiString AAdapterMode);
GetViewMode implements the ViewMode property of this adapter field. The ViewMode property can be used in server-side script to determine an appropriate control for the field's value.
AAdapterMode indicates the current mode of the parent dataset adapter. It is one of the following values:
GetViewMode returns one of the following strings:
Value |
Meaning |
Display the adapter field as an input field, by default use the style returned by the GetInputStyle method. | |
Display |
Display the adapter field as a read-only field, by default use the style returned by GetDisplayStyle. |
ToggleOnAccess |
Display as an input field if the end-user has modify rights, otherwise displays as a read-only field. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|