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

MBS FileMaker Plugin Example Databases

MethodDraw

All examples are included with download of MBS FileMaker Plugin.

MethodDraw.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
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
MethodDraw
3 fields defined, 1 record
MethodDraw

Fields

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

              Layout Objects: MethodDraw

              Regular Fields

              Field Name: MethodDraw::InputSVG
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 42 pt
              • Left: 852 pt
              • Bottom: 242 pt
              • Right: 1123 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

              Field Name: MethodDraw::OutputSVG
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 246 pt
              • Left: 852 pt
              • Bottom: 446 pt
              • Right: 1123 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

              Field Name: MethodDraw::Image
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 450 pt
              • Left: 852 pt
              • Bottom: 593 pt
              • Right: 1123 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
              No

              Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Initialize
              • Top: 7 pt
              • Left: 10 pt
              • Bottom: 32 pt
              • Right: 166 pt
              • Anchoring: Left, Top
              Perform Script [ “Init” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Save to Field
              • Top: 7 pt
              • Left: 182 pt
              • Bottom: 32 pt
              • Right: 338 pt
              • Anchoring: Left, Top
              Perform Script [ “Save” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Load from Field
              • Top: 7 pt
              • Left: 354 pt
              • Bottom: 32 pt
              • Right: 510 pt
              • Anchoring: Left, Top
              Perform Script [ “Load” ]

              Scripts:


              Web Viewer Controls

              Web Viewer Control PropertiesCoordinatesWeb Address
                Object Name:
              • web
                Additional Properties:
              • Allow interaction with web viewer content
              • Display progress bar
              • Display status messages
              • Automatically encode URL
              • Top: 42 pt
              • Left: 6 pt
              • Bottom: 595 pt
              • Right: 787 pt
              • Anchoring: Left, Top

              Script Hierarchy

              Init
              Save
              Load
              SavePreview

              Next Script: [Save]
              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
                • # We need to load file locally so Internet Explorer on Windows doesn't complain about security
                • If [ Get ( HostApplicationVersion ) = "" /* on server? */ ]
                • Set Variable [ $fpath; Value:Get(FilePath) ]
                • Set Variable [ $fpath; Value:Substitute($fpath; Get(FileName) & ".fp7"; "method-draw/index.html") ]
                • Set Variable [ $fpath; Value:Substitute($fpath; Get(FileName) & ".fmp12"; "method-draw/index.html") ]
                • Set Variable [ $npath; Value:MBS("Path.FileMakerPathToNativePath"; $fpath) ]
                • If [ Get(SystemPlatform) = -2 ]
                • # Win
                • Set Variable [ $url; Value:MBS("Path.FilePathToFileURL"; $npath) ]
                • Set Variable [ $url; Value:Substitute($url; "%20"; " ") ]
                • Else
                • #Mac
                • Set Variable [ $url; Value:"file://" & $npath ]
                • // Set Variable [ $url; Value:Substitute($url; " "; "%20") ]
                • End If
                • Set Variable [ $url; Value:Substitute($url; "file://localhost/"; "file:///") ]
                • Set Web Viewer [ Object Name: "web"; URL: $url ]
                • Else
                • Set Web Viewer [ Object Name: "HTMLEditor"; URL: "https://www.monkeybreadsoftware.com/filemaker/examples/method-draw/index.html" ]
                • 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: [Init]Next Script: [Load]
                              Script NameSave
                              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: [Save]Next Script: [SavePreview]
                                        Script NameLoad
                                        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: [Load]
                                                  Script NameSavePreview
                                                  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

                                                              Download example: MethodDraw

                                                              Used functions: