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  

IKDeviceBrowserPanel.SetTrigger

Sets the script trigger to notify on events.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImageCapture 6.5 Yes No No No No

MBS( "IKDeviceBrowserPanel.SetTrigger"; FileName; ScriptName )

Parameters

Parameter Description Example value
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


IKDeviceBrowserPanel.SetSelectButtonLabel   -   IKDeviceBrowserPanel.SetWidth

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins