Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

QLPreviewPanel.SetDismissTrigger

Sets the script trigger.

Component Version macOS Windows Linux Server iOS SDK
QuickLook 11.1 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "QLPreviewPanel.SetDismissTrigger"; 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 panel is dismissed.

Examples

Setup trigger:

Set Variable [ $r ; Value: MBS( "QLPreviewPanel.SetDismissTrigger"; Get(FileName); "Dismissed") ]
Set Variable [ $r ; Value: MBS( "QLPreviewPanel.Show") ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to show panel" ; $r ]
End If

Show panel to edit PDF document in container:

Set Variable [ $r ; Value: MBS( "QLPreviewPanel.Clear" ) ]
Set Variable [ $r ; Value: MBS( "QLPreviewPanel.AddContainer"; MyTable::PDFContainer ) ]
Set Variable [ $r ; Value: MBS( "QLPreviewPanel.SetDismissTrigger"; Get(FileName); "Dismissed" ) ]
Set Variable [ $r ; Value: MBS( "QLPreviewPanel.SetEditingAllowed"; 2) ]
Set Variable [ $r ; Value: MBS( "QLPreviewPanel.Show" ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th February 2021, last changed 18th February 2021


QLPreviewPanel.SetCurrentPreviewItemIndex - QLPreviewPanel.SetEditingAllowed

💬 Ask a question or report a problem