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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WebView.CreateWithControl
Creates a new web view inside the window with the given placeholder control.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WebView | 10.3 | Yes | Yes | No | No | Yes |
MBS( "WebView.CreateWithControl"; WindowRef; ControlName { ; Version } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 | |
| ControlName | The name of the control on your FileMaker form. e.g. you can place a rectangle there to define the position. |
"mymedia" | |
| Version | The WebKit version you need. Pass 1 for WebKit 1.x or 2 for WebKit 2.x. Default is zero, which prefers WebKit 1 on MacOS. |
0 | Optional |
Result
Returns OK or error.
Description
Creates a new web view inside the window with the given placeholder control.If you create WebKit 1.x view, you can use all the PDF/Image rendering functions, download delegate and callback functions, which don't work in WebKit 2.x.
But if you use WebKit 2.x, you can use script message handler or user scripts, which are not supported in WebKit 1.x.
The view is released automatically when window closes.
Web viewers created via WebView.Create or WebView.CreateWithControl are independent of FileMaker, so they don't reload with a record change. They also don't print with the layout and stay if you change the layout.
See also
- ImageView.CreateWithControl
- MapView.CreateWithControl
- TextView.CreateWithControl
- WebView.Create
- WebView.SetFrameWithControl
- Window.FindByIndex
- Window.FindByTitle
Example Databases
Blog Entries
- What is new in the MBS FileMaker Plugin Version 10.3
- Neues MBS FileMaker Plugin 10.3 - Über 6200 Funktionen in einem Plugin
- MBS FileMaker Plugin 10.3 - More than 6200 Functions In One Plugin
- MBS FileMaker Plugin, version 10.3pr3
Release notes
- Version 10.3
- Added WebView.CreateWithControl and WebView.SetFrameWithControl functions.
- Rewrote control placement for MacOS and iOS controls for AVPlayer.AddView, DragDrop.CreateWithControl, ImageView.CreateWithControl, MapView.CreateWithControl, TextView.CreateWithControl, WebView.CreateWithControl.
Created 9th June 2020, last changed 16th July 2020
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins