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  

WebDownloadDelegate.Install

Assigns this web viewer our download delegate.

Component Version macOS Windows Linux Server iOS SDK
WebDownloadDelegate 2.7 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "WebDownloadDelegate.Install"; WebViewerRef )   More

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.

Result

Returns OK on success or error.

Description

Assigns this web viewer our download delegate.
This needs to made whenever you want to receive download script calls for a web viewer.
If web viewer is part of a data record in FileMaker, you may need to set it for each record whenever a record is loaded.

Not supported for WebKit 2.x (FileMaker 16 Mac).

Examples

Makes sure all PDF files are downloaded:

MBS( "WebDownloadDelegate.Install" ; "web" )
MBS( "WebPolicyDelegate.AddMimeType"; "application/pdf"; "download" )

See also

Example Databases

Created 18th August 2014, last changed 13th May 2021


WebDownloadDelegate.GetFolder - WebDownloadDelegate.MIMEType

Feedback: Report problem or ask question.