Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebView.HasParent

Checks whether WebView has parent control.

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

Parameters

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

Result

Returns 0, 1 or error.

Description

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.

Examples

Whether browser has a parent:

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

See also

Release notes

Blog Entries

This function checks for a license.

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


WebView.HasOnlySecureContent - WebView.InstallCallback