MBS FileMaker Plugin Example Databases

WebViewer Forms

All examples are included with download of MBS FileMaker Plugin.

WebViewer Forms.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts5
Value Lists0
Custom Functions0
Custom Menus31
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 layoutStart
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Startup
OnLastWindowCloseScript: Shut Down
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
WebViewer_Forms
4 fields defined, 1 record
WebViewer_Forms

Fields

Table Name: WebViewer_Forms - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
nameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: English
      addressNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: English
          cityNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: English
              name_autoenterNormal, TextAuto-Enter: Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: English

                  Layout Objects: Start

                  Regular Fields

                  Field Name: WebViewer_Forms::name
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 188 pt
                  • Left: 126 pt
                  • Bottom: 208 pt
                  • Right: 313 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: WebViewer_Forms::address
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 215 pt
                  • Left: 126 pt
                  • Bottom: 235 pt
                  • Right: 313 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: WebViewer_Forms::city
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 243 pt
                  • Left: 126 pt
                  • Bottom: 263 pt
                  • Right: 313 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: WebViewer_Forms::name_autoenter
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 518 pt
                  • Left: 110 pt
                  • Bottom: 537 pt
                  • Right: 297 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: Read Field Values
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rounded
                  • Top: 310 pt
                  • Left: 192 pt
                  • Bottom: 341 pt
                  • Right: 313 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Read Form Fields” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Set Field Values
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rounded
                  • Top: 310 pt
                  • Left: 54 pt
                  • Bottom: 341 pt
                  • Right: 175 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Set Form Fields” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Clear
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rounded
                  • Top: 358 pt
                  • Left: 132 pt
                  • Bottom: 389 pt
                  • Right: 253 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Clear Form Field” ]

                  Scripts:


                  Web Viewer Controls

                  Web Viewer Control PropertiesCoordinatesWeb Address
                    Object Name:
                  • MyWebViewer
                    Additional Properties:
                  • Allow interaction with web viewer content
                  • Automatically encode URL
                  • Top: 117 pt
                  • Left: 426 pt
                  • Bottom: 292 pt
                  • Right: 733 pt
                  • Anchoring: Left, Top
                  "http://www.monkeybreadsoftware.de/filemaker/my_form.html"

                  Layout Objects: Splash

                  Script Hierarchy

                  Startup
                  Shut Down
                  Read Form Fields
                  Set Form Fields
                  Clear Form Field

                  Next Script: [Shut Down]
                  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
                      • Go to Layout [ "Start" ]
                      • Freeze Window
                      • Set Field [ WebViewer_Forms::name; "Todd Geist" ]
                      • Set Field [ WebViewer_Forms::address; "1445 E Los Angeles Ave, STE 301R" ]
                      • Set Field [ WebViewer_Forms::city; "Simi Valley" ]
                      • Set Field [ WebViewer_Forms::name_autoenter; "<edit me>" ]
                      • Commit Records/Requests
                      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: [Read Form Fields]
                              Script NameShut Down
                              Run script with full access privilegesOff
                              Include In MenuNo
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Go to Layout [ “Splash” ]
                                  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: [Shut Down]Next Script: [Set Form Fields]
                                              Script NameRead Form Fields
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                              Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • #Get the Value in the "Name Field"
                                                • Set Field [ WebViewer_Forms::name; Let( [ Field = "name"; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; "WindowRef"; WebViewerName) ]; //WebViewerID MBS("WebView.GetFormValue"; WebViewerID; Form; Field) ) ]
                                                • #Get the Value in the "Address"
                                                • Set Field [ WebViewer_Forms::address; Let( [ Field = "address"; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; "WindowRef"; WebViewerName) ]; //WebViewerID MBS("WebView.GetFormValue"; WebViewerID; Form; Field) ) ]
                                                • #Get the Value in the "Address"
                                                • Set Field [ WebViewer_Forms::city; Let( [ Field = "city"; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; "WindowRef"; WebViewerName) ]; //WebViewerID MBS("WebView.GetFormValue"; WebViewerID; Form; Field) ) ]
                                                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: [Read Form Fields]Next Script: [Clear Form Field]
                                                        Script NameSet Form Fields
                                                        Run script with full access privilegesOff
                                                        Include In MenuYes
                                                        Layouts that use this script
                                                        Scripts that use this script
                                                          Script Definition
                                                          Script Steps
                                                          • #Set the Name Field
                                                          • Set Variable [ $result; Value:Let( [ Field = "name"; NewValue = WebViewer_Forms::name; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                          • #set the address field
                                                          • Set Variable [ $result; Value:Let( [ Field = "address"; NewValue = WebViewer_Forms::address; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                          • #set the "city" field
                                                          • Set Variable [ $result; Value:Let( [ Field = "city"; NewValue = WebViewer_Forms::city; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                          • Commit Records/Requests
                                                          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: [Set Form Fields]
                                                                  Script NameClear Form Field
                                                                  Run script with full access privilegesOff
                                                                  Include In MenuYes
                                                                  Layouts that use this script
                                                                  Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    • #Set the Name Field
                                                                    • Set Variable [ $result; Value:Let( [ Field = "name"; NewValue = ""; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                                    • #set the address field
                                                                    • Set Variable [ $result; Value:Let( [ Field = "address"; NewValue = ""; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                                    • #set the "city" field
                                                                    • Set Variable [ $result; Value:Let( [ Field = "city"; NewValue = ""; Form = "myForm"; WebViewerName = "MyWebViewer"; WindowRef = MBS( "WebView.FindWindowByTitle" ; Get(WindowName) ); WebViewerID = MBS("WebView.FindByName"; WindowRef; WebViewerName) ]; MBS("WebView.SetFormValue"; WebViewerID; Form; Field; NewValue) ) ]
                                                                    • Commit Records/Requests
                                                                    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: WebViewer Forms

                                                                                  Used functions:




                                                                                  Links
                                                                                  MBS Xojo blog