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: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  


Checks whether WebView has parent control.

Component Version macOS Windows Linux Server iOS SDK License
WebView 12.1 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes Paid
MBS( "WebView.HasParent"; WebViewerRef )   More


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


Returns 0, 1 or error.


Checks whether WebView has parent control.
When you use custom WebViewer with our plugin, you may run into the situation, that FileMaker rebuilds the layout (e.g. after changing a value list!). Then WebView.HasParent will return 0 and you know the WebViewer got removed by FileMaker.
So when you have a script triggered by user going to new layout, you can check the status of web viewer and if needed rebuild it. Or change workflows, so if user needs to change a value list, they may need to open a card window then reach the edit dialog and when they click back button to close card, you can reload WebViewer.


Whether browser has a parent:

Set Variable [ $hasParent ; Value: MBS("WebView.HasParent"; $$web) ]

See also

Release notes

Blog Entries

Created 28th January 2022, last changed 28th January 2022

WebView.HasOnlySecureContent - WebView.InstallCallback

Feedback: Report problem or ask question.

Start Chat