RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEndUserAdapter.GetDisplayNameValue Method

Generates an OnGetDisplayName event.

Pascal
function GetDisplayNameValue: string; override;
C++
virtual __fastcall AnsiString GetDisplayNameValue();

GetDisplayNameValue is the implementation of the DisplayName adapter field. When a server-side script references the display name of the current user, it generates a call to GetDisplayNameValue. TCustomEndUserAdapter responds by generating an OnGetDisplayName event, where you can take supply the name of the current user. 

GetDisplayNameValue returns the display name that the OnGetDisplayName event handler provides. If you do not supply an OnGetDisplayName event handler, GetDisplayNameValue returns an empty string. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!