Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

Addressbook.recordsMatchingSearchElement

Searches matching records.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Addressbook 5.4 Yes No No No No

MBS( "Addressbook.recordsMatchingSearchElement"; SearchElement )

Parameters

Parameter Description Example value
SearchElement The ID for the search element. $SearchElement

Result

Returns list or error.

Description

Searches matching records.
Returns a list of records that match the given search element, or returns an empty array if no records match the search element.

Examples

Find a person with first name being Christian:

Set Variable [$e1; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "FirstNameProperty"; ""; ""; "Christian"; "Equal" )]
Set Variable [$records; Value:MBS( "Addressbook.recordsMatchingSearchElement"; $e1)]
Set Variable [$record; Value:GetValue($records; 1)]
Set Variable [$name; Value:MBS( "Addressbook.record.displayname"; $record )]
Show Custom Dialog [$name]

Search people with related name being John:

Set Variable [$e1; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "RelatedNamesProperty"; ""; ""; "John"; "ContainsSubStringCaseInsensitive" )]
Set Variable [$records; Value:MBS( "Addressbook.recordsMatchingSearchElement"; $e1)]
Set Variable [$record; Value:GetValue($records; 1)]
Set Variable [$name; Value:MBS( "Addressbook.record.displayname"; $record )]
Show Custom Dialog [$name]

See also

Created 26th October 2015, last changed 26th October 2015


Addressbook.record.valueForProperty   -   Addressbook.removeRecord

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins