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.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

Addressbook.searchElementForConjunction

Joins several search elements.

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

MBS( "Addressbook.searchElementForConjunction"; conjunction; SearchElements )

Parameters

Parameter Description Example value
conjunction The logical operator with which to combine the search elements. Can be "AND" or "OR". "AND"
SearchElements List of search element IDs.

Result

Returns ID or error.

Description

Joins several search elements.
Returns a compound search element, created by combining the search elements in an array with the given conjunction.

Examples

Find people with last name and email matching:

Set Variable [$e1; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "LastNameProperty"; ""; ""; "Schmitz"; "ContainsSubStringCaseInsensitive" )]
Set Variable [$e2; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "EmailProperty"; ""; ""; "monkeybread"; "ContainsSubStringCaseInsensitive" )]
Set Variable [$e; Value:MBS( "Addressbook.searchElementForConjunction"; "and"; $e1 & ¶ & $e2 )]
Set Variable [$records; Value:MBS( "Addressbook.recordsMatchingSearchElement"; $e)]
Set Variable [$record; Value:GetValue($records; 1)]
Set Variable [$name; Value:MBS( "Addressbook.record.displayname"; $record )]
Show Custom Dialog [$name]

See also


Addressbook.save   -   Addressbook.searchElementForProperty

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins