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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

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

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


Proj.Transform - QLPreviewPanel.AddFile

Feedback: Report problem or ask question.