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

QLPreviewPanel.AddContainer

Adds an container to the list of files to preview.

Component Version macOS Windows Linux Server iOS SDK
QuickLook 8.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "QLPreviewPanel.AddContainer"; Container { ; Title } )   More

Parameters

Parameter Description Example Flags
Container the container to show. MyTable::MyField
Title The title for the container. "My Holiday" Optional

Result

Returns OK or error.

Description

Adds an container to the list of files to preview.
If you have an existing file, better use QLPreviewPanel.AddFile function.
The container can contain a file supported by QuickLook for previewing.

Either we use file path from FileMaker's external container storage directly or we write a temporary file, which is cleared later when app quits or panel is cleared.

Examples

Show containers:

# Prepare
If [ MBS("QLPreviewPanel.IsVisible") ]
    Set Variable [ $r ; Value: MBS("QLPreviewPanel.Hide") ]
End If
Set Variable [ $r ; Value: MBS("QLPreviewPanel.Clear") ]
#
# Add all containers you have
Set Variable [ $r ; Value: MBS("QLPreviewPanel.AddContainer"; PlaceHolder::Container; "Stratocaster") ]
#
# Run it!
Set Variable [ $r ; Value: MBS("QLPreviewPanel.Show") ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 14th August 2018, last changed 15th August 2018


Progressdialog.SetScript - QLPreviewPanel.AddFile