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
Tables 1
Relationships 0
Layouts 1
Scripts 4
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalist
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

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

Fields

Table Name: MethodDraw - 3 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
InputSVG Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      OutputSVG Normal, Text Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          Image Normal, Binary Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1

              Layout Objects: MethodDraw

              Regular Fields

              Field Name: MethodDraw::InputSVG
              Field Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Script/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 Properties Coordinates Script/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 Properties Coordinates Script/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 Properties Coordinates Web 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 Name Init
              Run script with full access privileges Off
              Siri Shortcut Visible Off
              Include In Menu Yes
              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 Name Save
                              Run script with full access privileges Off
                              Siri Shortcut Visible Off
                              Include In Menu Yes
                              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 Name Load
                                        Run script with full access privileges Off
                                        Siri Shortcut Visible Off
                                        Include In Menu Yes
                                        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 Name SavePreview
                                                  Run script with full access privileges Off
                                                  Siri Shortcut Visible Off
                                                  Include In Menu Yes
                                                  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: