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

QLPreviewPanel.SetEditingAllowed

Sets whether editing is allowed.

Component Version macOS Windows Linux Server iOS SDK
QuickLook 11.1 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "QLPreviewPanel.SetEditingAllowed"; Editable )   More

Parameters

Parameter Description Example
Editable Pass 1 to enable or 0 to disable. 1

Result

Returns OK or error.

Description

Sets whether editing is allowed.
The user can annotate images and PDF documents on iOS within your application (requires use of FileMaker iOS SDK).

Examples

Enable editing:

MBS( "QLPreviewPanel.SetEditingAllowed"; 1 )

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 24th August 2022


QLPreviewPanel.SetDismissTrigger - QLPreviewPanel.SetSharingAllowed

💬 Ask a question or report a problem