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  


Creates a new webview inside the window on top of popover with the given rectangle.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 8.1 Yes No No No No
MBS( "WebView.CreateOnPopover"; WindowRef; Popover Name; x; y; w; h )   More


Parameter Description Example value
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
Popover Name The name of the popover to look for on the window. "MyPopover"
x The left coordinate in the popover. 0
y The top coordinate in the popover. 0
w The width of the drop area in the popover. 600
h The height of the drop area in the popover. 400


Returns webviewer reference number or error.


Creates a new webview inside the window on top of popover with the given rectangle.
This is WebKit 1.x view, so all the PDF/Image rendering functions, download delegate and callback should work.

The view is released automatically when window closes.
Webviewers created via WebView.Create or WebView.CreateOnPopover 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.


Create WebView:

Set Variable [ $x ; Value: 10 ]
Set Variable [ $y ; Value: 55 ]
Set Variable [ $w ; Value: 837 - 10 - $x ]
Set Variable [ $h ; Value: 522 - 10 - $y ]
Set Variable [ $w ; Value: MBS("WebView.CreateOnPopover"; 0; "MyPopover"; $x; $y; $w; $h) ]
If [ MBS("IsError") = 0 ]
    Set Variable [ $$web ; Value: $w ]
    Set Field [ WebViewer on Popover::URL ; "" ]
    Set Variable [ $r ; Value: MBS( "WebView.LoadURL"; $$web; WebViewer on Popover::URL) ]
End If

See also

Example Databases

Blog Entries

Release notes

Created 16th February 2018, last changed 16th October 2018

WebView.Create   -   WebView.Cut

Feedback: Report problem or ask question.

MBS FileMaker Plugins

Start Chat