MBS FileMaker Plugin Example Databases

Register Example

All examples are included with download of MBS FileMaker Plugin.

Register Example.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
Register
5 fields defined, 1 record
Register

Fields

Table Name: Register - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IsRegisteredCalculated, NumberCalculation:
  • Context table: Register
  • MBS("IsRegistered")
Storage:
  • Repetitions: 1
  • Do not store calculation results
  • Index Language: German
        IsServerCalculated, NumberCalculation:
        • Context table: Register
        • MBS("IsServer")
        Storage:
        • Repetitions: 1
        • Do not store calculation results
        • Index Language: German
              IsClientCalculated, NumberCalculation:
              • Context table: Register
              • MBS("IsClient")
              Storage:
              • Repetitions: 1
              • Do not store calculation results
              • Index Language: German
                    IsWindowsCalculated, NumberCalculation:
                    • Context table: Register
                    • MBS("IsWindows")
                    Storage:
                    • Repetitions: 1
                    • Do not store calculation results
                    • Index Language: German
                          IsMacOSXCalculated, NumberCalculation:
                          • Context table: Register
                          • MBS("IsMacOSX")
                          Storage:
                          • Repetitions: 1
                          • Do not store calculation results
                          • Index Language: German

                                Layout Objects: Register

                                Regular Fields

                                Field Name: Register::IsRegistered
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 89 pt
                                • Left: 152 pt
                                • Bottom: 110 pt
                                • Right: 231 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
                                Yes

                                Field Name: Register::IsServer
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 112 pt
                                • Left: 152 pt
                                • Bottom: 133 pt
                                • Right: 231 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
                                Yes

                                Field Name: Register::IsClient
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 135 pt
                                • Left: 152 pt
                                • Bottom: 156 pt
                                • Right: 231 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
                                Yes

                                Field Name: Register::IsWindows
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 158 pt
                                • Left: 152 pt
                                • Bottom: 179 pt
                                • Right: 231 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
                                Yes

                                Field Name: Register::IsMacOSX
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 181 pt
                                • Left: 152 pt
                                • Bottom: 202 pt
                                • Right: 231 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
                                Yes

                                Script Hierarchy

                                Unregister
                                InitMBS
                                Init

                                Next Script: [InitMBS]
                                Script NameUnregister
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • Set Variable [ $r; Value:MBS("unregister") ]
                                    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: [Unregister]Next Script: [Init]
                                                  Script NameInitMBS
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                    Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • #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 [ Title: "InitMBS failed."; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                    • 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 [ Title: "InitMBS failed."; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                    • 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: [InitMBS]
                                                                  Script NameInit
                                                                  Run script with full access privilegesOff
                                                                  Include In MenuYes
                                                                  Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      • #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” ]
                                                                      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: Register Example

                                                                                  Used functions:




                                                                                  Links
                                                                                  MBS FileMaker blog