MBS FileMaker Plugin Example Databases

Switch

All examples are included with download of MBS FileMaker Plugin.

Switch.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists0
Custom Functions0
Custom Menus33
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
OnFirstWindowOpenScript: Startup
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Slider
1 field defined, 1 record
Slider

Fields

Table Name: Slider - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
CurrentValueNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German

      Layout Objects: Slider

      Regular Fields

      Field Name: Slider::CurrentValue
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 24 pt
      • Left: 138 pt
      • Bottom: 38 pt
      • Right: 391 pt
      • Anchoring: Left, Top
      Field Format:
      • Edit Box
      Field Behavior:
      • Allow field to be entered: In Find mode, In Browse mode
      • Touch keyboard type: System Default
      • Go to next field using: Tab key
      Yes

      Group Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Switch On
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 24 pt
      • Left: 432 pt
      • Bottom: 49 pt
      • Right: 523 pt
      • Anchoring: Left, Top
      Perform Script [ “SetOn” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Switch Off
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 60 pt
      • Left: 432 pt
      • Bottom: 85 pt
      • Right: 523 pt
      • Anchoring: Left, Top
      Perform Script [ “SetOff” ]

      Scripts:


      Web Viewer Controls

      Web Viewer Control PropertiesCoordinatesWeb Address
        Additional Properties:
      • Allow interaction with web viewer content
      • Automatically encode URL
      • Top: 54 pt
      • Left: 72 pt
      • Bottom: 109 pt
      • Right: 391 pt
      • Anchoring: Left, Top
      "http://www.monkeybreadsoftware.de/filemaker/switch/index.html"

      Script Hierarchy

      Startup
      ValueChanged
      SetOn
      SetOff

      Next Script: [ValueChanged]
      Script NameStartup
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
        Scripts that use this script
          Script Definition
          Script Steps
          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: [Startup]Next Script: [SetOn]
                        Script NameValueChanged
                        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 [ $value; Value:Get ( ScriptParameter ) ]
                            • Set Field [ Slider::CurrentValue; $value ]
                            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: [ValueChanged]Next Script: [SetOff]
                                    Script NameSetOn
                                    Run script with full access privilegesOff
                                    Include In MenuYes
                                    Layouts that use this script
                                    Scripts that use this script
                                      Script Definition
                                      Script Steps
                                      • Set Field [ Slider::CurrentValue; 1 ]
                                      • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript" ; "web"; "SwitchOn();" ) ]
                                      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: [SetOn]
                                              Script NameSetOff
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                              Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • Set Field [ Slider::CurrentValue; 0 ]
                                                • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript" ; "web"; "SwitchOff();" ) ]
                                                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: Switch

                                                        Used functions:




                                                        Links
                                                        MBS Xojo Plugins