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.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  

DocumentPicker.Open

Shows dialog to open files.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FileDialog 9.1 No No No No Yes
MBS( "DocumentPicker.Open"; AllowedUTIs; allowsMultipleSelection )   More

Parameters

Parameter Description Example value
AllowedUTIs The list of allowed universal types. "public.jpeg¶public.png"
allowsMultipleSelection Whether to allow multiple files to be selected.
Pass 1 to allow and 0 to disallow.
1

Result

Returns OK or error.

Description

Shows dialog to open files.
The user selects an external document. The document picker provides access to the document, and the user can edit the document in place.

On success, we store the list of file paths and trigger script. Script is trigger with parameter "Pick" or "Cancel".
The paths list refers to the selected documents.

Warning: Function returns immediately and dialog shows after function returned asynchronously.
For FileMaker database files, please use com.filemaker.doc.fmp12 as UTI or simply public.data.

See also

Example Databases

Created 28th January 2019, last changed 22nd February 2019


DocumentPicker.Move   -   DocumentPicker.SetTrigger

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins