Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
IsRegistered
Queries if plugin is registered with Complete key.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 3.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Component | Which part you want to check. | "webview" | Optional |
Result
Returns 1 if the plugin is registered or 0 if not.
Description
Queries if plugin is registered with Complete key.See also Register, IsRuntime, IsServer and IsClient.
Examples
Register only when needed:
If [MBS("IsRegistered") ≠ 1]
If [MBS("IsRuntime")]
Set Variable [$r; Value:MBS("Register"; "test"; "Runtime"; 123; 123)]
Else If [MBS("IsMobile")]
Set Variable [$r; Value:MBS("Register"; "test"; "iOS"; 123; 123)]
Else If [MBS("IsServer")]
Set Variable [$r; Value:MBS("Register"; "test"; "Server"; 123; 123)]
Else
Set Variable [$r; Value:MBS("Register"; "test"; "5 seats"; 123; 123)]
End If
End If
Check if plugin is registered:
$v = MBS("IsRegistered")
Register with Startup script for server and client:
Startup Script:
#Register for client
Perform Script [“InitMBS”]
#Register for server. Will be ignored if no server or no plugin installed on server
Perform Script on Server [“InitMBS”]
InitMBS script:
#Enable debug logging. Shows messages in DebugView/Console.app
Set Variable [$r; Value:MBS("Trace")]
#Register if needed for right platform
If [MBS("IsRegistered") = 0]
If [MBS("IsRuntime")]
Set Variable [$r; Value:MBS("Register"; "test"; "Complete"; "Runtime"; 123; 123)]
Else If [MBS("IsServer")]
Set Variable [$r; Value:MBS("Register"; "test"; "Complete"; "Server"; 123; 123)]
Else If [MBS("IsClient")]
Set Variable [$r; Value:MBS("Register"; "test"; "Complete"; "5 Seats"; 123; 123)]
Else
Set Variable [$r; Value:"Unknown platform: " & MBS("Platform")]
End If
#Show errors, so developer can fix them
If [$r ≠ "OK"]
Show Custom Dialog ["InitMBS failed."; $r]
End If
End If
#May initialize other stuff
#like dynapdf with library in extensions folder
If [MBS("DynaPDF.IsInitialized") = 0]
Set Variable [$DynaPDFLicense; Value:"1003637-16022016-3-8-12-685C57F..."]
If [MBS("IsWindows")]
Set Variable [$r; Value:MBS( "DynaPDF.Initialize"; "dynapdf.dll"; $DynaPDFLicense)]
Else If [MBS("IsMacOSX")]
Set Variable [$r; Value:MBS( "DynaPDF.Initialize"; "dynapdf.dylib"; $DynaPDFLicense)]
Else
Set Variable [$r; Value:"Unknown platform: " & MBS("Platform")]
End If
#Show errors, so developer can fix them
If [$r ≠ "OK"]
Show Custom Dialog ["InitMBS failed."; $r]
End If
End If
Script to report back status of MBS Plugin:
# Script to trigger somewhere to report back details about MBS Plugin
Set Variable [ $version ; Value: GetAsText(MBS("Version")) ]
Set Variable [ $platform ; Value: MBS( "Platform" ) ]
Set Variable [ $buildNumber ; Value: MBS( "Plugin.BuildNumber" ) ]
Set Variable [ $path ; Value: MBS( "Plugin.Path" ) ]
Set Variable [ $IsRegistered ; Value: MBS( "IsRegistered" ) ]
Set Variable [ $Name ; Value: MBS( "Plugin.LicenseeName" ) ]
Set Variable [ $Debug ; Value: MBS( "Plugin.isDebug" ) ]
If [ $version = "?" ]
Set Variable [ $text ; Value: "MBS Plugin not installed. " & Get ( ApplicationVersion ) ]
Else
Set Variable [ $l1 ; Value: "MBS Plugin " & $version & ", build " & $buildNumber & " installed in " & Get ( ApplicationVersion ) ]
Set Variable [ $l2 ; Value: "¶Platform: " & $Platform & "¶Path: " & $path ]
Set Variable [ $l3 ; Value: If($IsRegistered; "¶Licensed for: " & $Name ; "¶No license set.") ]
Set Variable [ $l4 ; Value: "¶Debug: " & If($debug; "yes"; "no") ]
Set Variable [ $text ; Value: $l1 & $l2 & $l3 ]
End If
Exit Script [ Text Result: $text ]
See also
- IsClient
- IsMobile
- IsRuntime
- IsWindows
- Plugin.BuildNumber
- Plugin.LicenseeName
- Register
- Trace
- Unregister
- Version
Blog Entries
- Register Script for MBS Plugin
- Identify plugin version and platform
- MBS FileMaker Plugin registration dialogs
- Print WebViewer on macOS in FileMaker
- Properly register MBS FileMaker Plugin
- 4000 functions in 10 years
- MBS FileMaker Plugin debugging help
- MBS Filemaker Plugin, version 3.0pr9
This function is free to use.
Created 18th August 2014, last changed 26th June 2018