Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CNContactPicker.SetTrigger
Sets the script trigger.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 10.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CNContactPicker.SetTrigger"; FileName; ScriptName ) More
Parameters
Parameter | Description | Example |
---|---|---|
FileName | The name of the FileMaker File that contains the script. | "test.fmp12" |
ScriptName | The name of the script to run. | "MyScript" |
Result
Returns OK or error.
Description
Sets the script trigger.This script is called when a contact is selected.
Examples
Setup trigger:
# use picker sheet/popover to select contact
Set Variable [ $r ; Value: MBS( "CNContactPicker.SetTrigger"; Get(FileName); "Picked") ]
Set Variable [ $r ; Value: MBS( "CNContactPicker.Show") ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to show picker" ; $r ]
End If
See also
Example Databases
Blog Entries
This function is free to use.
Created 31st January 2020, last changed 13th January 2021