Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

WebView.FindByName

Returns a unique ID that references a the web viewer.

Component: WebView
Version: 1.3
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.FindByName"; WindowRef; WebViewerObjectName )

Parameters

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
WebViewerObjectName The name of the Web Viewer as set in the object info palette. "web"

Description

Returns a unique ID that references a the web viewer.
This function is used by all the other functions to target the correct web viewer. This function requires the WindowRef that is returned by the WebView.FindWindowByTitle function. Known Issues: In FileMaker 9, the WebView control must have the Display Progress Bar and Display Status Messages check boxes set to "unchecked" FileMaker 8,Windows PC only. The WebView Control can not be set to have "zero" line width on it's border. With the release of 1.4 this function became optional. You can now access a WebViewer by its name. But this is still useful in some scenarios. If you are trying to get a handle on WebViewer that is displayed in List mode, you must use this method.
The Webview reference is only valid until FileMaker destroys the Webviewer. So better search again when you move to a new record or change the window.

The webviewer must have content to be found. If you don't load a page, you should still put an "about:blank" URL there.

Examples

Find the Web View ID

Let(
[
WebViewerName = "web";
WindowRef = MBS("Window.FindByTitle"; Get(WindowName))
];

MBS("WebView.FindByName"; WindowRef; WebViewerName)

)

Find Webviewer in current window:

MBS("WebView.FindByName"; Get(WindowName); "web")

See also


WebView.EstimatedProgress   -   WebView.FindWindowByIndex

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Förderverein St. Arnulf Nickenich