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.FindWindowByTitle
Returns the Window Reference for a window specified by the Index parameter.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WebView | 1.3 | Yes | Yes | No | No | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Title | The title of the widow | "Hello" |
Result
Returns window reference number or error.
Description
Returns the Window Reference for a window specified by the Index parameter.The Window Reference is a unique ID.
The window reference is only valid until the window is closed.
On normal FileMaker on desktop you can use Get(WindowName), but on FileMaker Server the name includes the server name, so you need to use: Get(WindowName) & " (" & Get(HostName) & ")"
If 0 is returned, no window was found.
Examples
Get the Window Reference of the current window
MBS( "WebView.FindWindowByTitle" ; Get(WindowName) )
Find window reference on FileMaker Server where FileMaker includes server name in window name:
MBS( "WebView.FindWindowByTitle"; Get(WindowName) & " (" & Get(HostName) & ")")
See also
Example Databases
- WebViewer/Disable Javascript alerts on Webviewer Mac
- WebViewer/Form Fields/Benchmark
- WebViewer/Form Fields/WebViewer Forms
- WebViewer/Javascript calls Filemaker Script/Callbacks with Custom Webviewer
- WebViewer/Javascript calls Filemaker Script/callbacks
- Window/Window Fade
Created 18th August 2014, last changed 18th August 2014
WebView.FindWindowByIndex - WebView.FormReset
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins