Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Adds an container to the list of files to preview.

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


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


Returns OK or error.


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.


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

Blog Entries

Release notes

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

Progressdialog.SetScript   -   QLPreviewPanel.AddFile

Feedback: Report problem or ask question.

MBS Xojo blog