Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

IKDeviceBrowserPanel.SetTrigger

Sets the script trigger to notify on events.

Component Version macOS Windows Linux Server iOS SDK
ImageCapture 6.5 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "IKDeviceBrowserPanel.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 to notify on events.
Script parameter will be Cancel, Select or Close depending what the user clicked.

Examples

Store selected scanner in triggered script:

Set Variable [$Param; Value:Get(ScriptParameter)]
If [$Param = "Select"]
    Set Variable [$name; Value:MBS("IKDeviceBrowserPanel.SelectedDeviceName")]
    Set Field [ImageCapture Dialogs::ScannerName; $name]
End If

Set trigger script:

Set Variable [$r; Value:MBS( "IKDeviceBrowserPanel.SetTrigger"; Get(FileName); "Scanner Selection Trigger" )]

See also

Example Databases

This function is free to use.

Created 7th November 2016, last changed 7th November 2016


IKDeviceBrowserPanel.SetSelectButtonLabel - IKDeviceBrowserPanel.SetWidth

💬 Ask a question or report a problem