MBS FileMaker Plugin Example Databases

Debugging and Registration

All examples are included with download of MBS FileMaker Plugin.

Debugging and Registration.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
MBSPlugin
3 fields defined, 0 record
MBSPlugin

Fields

Table Name: MBSPlugin - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
LicenseKeyServerNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      LicenseKeyClientNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Global
      • Repetitions: 1
      • Index Language: German
          LicenseKeyRuntimeNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Global
          • Repetitions: 1
          • Index Language: German

              Layout Objects: MBSPlugin

              Regular Fields

              Field Name: MBSPlugin::LicenseKeyServer
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 198 pt
              • Left: 142 pt
              • Bottom: 219 pt
              • Right: 395 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              No

              Field Name: MBSPlugin::LicenseKeyClient
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 221 pt
              • Left: 142 pt
              • Bottom: 242 pt
              • Right: 395 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              No

              Field Name: MBSPlugin::LicenseKeyRuntime
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 244 pt
              • Left: 142 pt
              • Bottom: 265 pt
              • Right: 395 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              No

              Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Enable Trace locally
              • Top: 66 pt
              • Left: 19 pt
              • Bottom: 96 pt
              • Right: 179 pt
              • Anchoring: Left, Top
              Perform Script [ “Enable Trace” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Enable Trace on Server
              • Top: 108 pt
              • Left: 19 pt
              • Bottom: 138 pt
              • Right: 179 pt
              • Anchoring: Left, Top
              Perform Script [ “Enable Trace” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Enable Error Notifications
              • Top: 66 pt
              • Left: 319 pt
              • Bottom: 96 pt
              • Right: 479 pt
              • Anchoring: Left, Top
              Set Variable [ $r; Value:MBS("Trace.EnableErrorNotifications") ]

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Disable Error Notifications
              • Top: 108 pt
              • Left: 319 pt
              • Bottom: 138 pt
              • Right: 479 pt
              • Anchoring: Left, Top
              Set Variable [ $r; Value:MBS("Trace.DisableErrorNotifications") ]

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Register
              • Top: 201 pt
              • Left: 406 pt
              • Bottom: 231 pt
              • Right: 566 pt
              • Anchoring: Left, Top
              Perform Script [ “Register” ]

              Scripts:


              Script Hierarchy

              Enable Trace
              Enable Trace on Server
              Register
              RegisterInternal

              Next Script: [Enable Trace on Server]
              Script NameEnable Trace
              Run script with full access privilegesOff
              Include In MenuYes
              Layouts that use this script
              Scripts that use this script
              Script Definition
              Script Steps
              • If [ Get ( SystemPlatform ) = 3 ]
              • #iOS, no plugin
              • Exit Script [ ]
              • End If
              • If [ MBS("IsServer") ]
              • If [ MBS( "SystemInfo.isMacOSX" ) ]
              • If [ Get ( SystemPlatform ) = 4 ]
              • #Server on Mac for WebDirect
              • Set Variable [ $r; Value:MBS("Trace"; "/tmp/TraceFMServerWebDirect.txt") ]
              • Else
              • #Server on Mac
              • Set Variable [ $r; Value:MBS("Trace"; "/tmp/TraceFMServer.txt") ]
              • End If
              • Else
              • #Server on Windows
              • Set Variable [ $r; Value:MBS("Trace") ]
              • #read via DebugView app running as admin with Global Win32 logging enabled
              • End If
              • Else
              • If [ MBS( "SystemInfo.isMacOSX" ) ]
              • #Client on Mac
              • Set Variable [ $r; Value:MBS("Trace") ]
              • #read via Console.app
              • Else
              • #Client on Windows
              • Set Variable [ $r; Value:MBS("Trace") ]
              • #read via DebugView app
              • End If
              • End If
              Fields used in this script
                Scripts used in this script
                  Layouts used in this script
                    Tables used in this script
                      Table occurrences used by this script
                        Custom Functions used by this script
                          Custom menu set used by this script

                            Previous Script: [Enable Trace]Next Script: [Register]
                            Script NameEnable Trace on Server
                            Run script with full access privilegesOff
                            Include In MenuYes
                            Layouts that use this script
                              Scripts that use this script
                                Script Definition
                                Script Steps
                                • Perform Script on Server [ “Enable Trace” ]
                                Fields used in this script
                                  Scripts used in this script
                                  Layouts used in this script
                                    Tables used in this script
                                      Table occurrences used by this script
                                        Custom Functions used by this script
                                          Custom menu set used by this script

                                            Previous Script: [Enable Trace on Server]Next Script: [RegisterInternal]
                                            Script NameRegister
                                            Run script with full access privilegesOff
                                            Include In MenuYes
                                            Layouts that use this script
                                            Scripts that use this script
                                              Script Definition
                                              Script Steps
                                              • Perform Script [ “RegisterInternal” ]
                                              • # this will do nothing if no server is used
                                              • Perform Script on Server [ “RegisterInternal” ]
                                              Fields used in this script
                                                Scripts used in this script
                                                Layouts used in this script
                                                  Tables used in this script
                                                    Table occurrences used by this script
                                                      Custom Functions used by this script
                                                        Custom menu set used by this script

                                                          Previous Script: [Register]
                                                          Script NameRegisterInternal
                                                          Run script with full access privilegesOff
                                                          Include In MenuYes
                                                          Layouts that use this script
                                                            Scripts that use this script
                                                            Script Definition
                                                            Script Steps
                                                            • If [ Get ( SystemPlatform ) = 3 ]
                                                            • # iOS, no plugin to register
                                                            • Exit Script [ ]
                                                            • End If
                                                            • If [ MBS("isRegistered") ]
                                                            • # already registered
                                                            • Else
                                                            • # register
                                                            • If [ MBS("IsServer") ]
                                                            • Set Variable [ $r; Value:Evaluate("MBS(\"Register\"; " & MBSPlugin::LicenseKeyServer & ")") ]
                                                            • Else If [ MBS("isRuntime") ]
                                                            • Set Variable [ $r; Value:Evaluate("MBS(\"Register\"; " & MBSPlugin::LicenseKeyRuntime & ")") ]
                                                            • Else
                                                            • Set Variable [ $r; Value:Evaluate("MBS(\"Register\"; " & MBSPlugin::LicenseKeyClient & ")") ]
                                                            • End If
                                                            • End If
                                                            Fields used in this script
                                                            Scripts used in this script
                                                              Layouts used in this script
                                                                Tables used in this script
                                                                Table occurrences used by this script
                                                                Custom Functions used by this script
                                                                  Custom menu set used by this script

                                                                    Download example: Debugging and Registration

                                                                    Used functions:




                                                                    Links
                                                                    MBS Xojo PDF Plugins