Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Addressbook.record.displayname

Convenience function to return a display name for a record.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Addressbook 3.1 Yes No Yes, macOS only No Yes

MBS( "Addressbook.record.displayname"; RecordID )

Parameters

Parameter Description Example value
RecordID The unique ID for the target person or group. $personID

Result

Returns name or error.

Description

Convenience function to return a display name for a record.
Returns firstname & lastname for persons, organization name for organizations and group name for groups.

Examples

Query display name of first group:

MBS( "Addressbook.record.displayname"; ElementLeft ( MBS( "Addressbook.groups" ) ; 1 ))

Query display name of addressbook's owner:

MBS( "Addressbook.record.displayname"; MBS( "Addressbook.me" ))

Query display name based on a ID:

MBS( "Addressbook.record.displayname"; "CFD73A44-24DD-480F-A1DE-A31926BC4AC7:ABPerson" )

See also

Example Databases


Addressbook.record.UniqueID   -   Addressbook.record.isReadOnly

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins