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: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

QLPreviewPanel.AddContainer

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

Parameters

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

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

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


Progressdialog.SetScript   -   QLPreviewPanel.AddFile

Feedback: Report problem or ask question.




Links
MBS FileMaker blog