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

MBS FileMaker Plugin Example Databases

ServerSocket from Webviewer

All examples are included with download of MBS FileMaker Plugin.

ServerSocket from Webviewer.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
ServerSocket from Webviewer
1 field defined, 1 record
ServerSocket from Webviewer

Fields

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

      Layout Objects: ServerSocket from Webviewer

      Regular Fields

      Field Name: ServerSocket from Webviewer::Message
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 54 pt
      • Left: 138 pt
      • Bottom: 68 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: Load Page
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 12 pt
      • Left: 30 pt
      • Bottom: 31 pt
      • Right: 133 pt
      • Anchoring: Left, Top
      Perform Script [ “LoadFile” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Listen
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 12 pt
      • Left: 144 pt
      • Bottom: 31 pt
      • Right: 247 pt
      • Anchoring: Left, Top
      Perform Script [ “Listen” ]

      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: 72 pt
      • Left: 12 pt
      • Bottom: 577 pt
      • Right: 547 pt
      • Anchoring: Left, Top
      "about:blank"

      Script Hierarchy

      Listen
      LoadFile
      SetMessageScript

      Next Script: [LoadFile]
      Script NameListen
      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("Trace") ]
        • Set Variable [ $r; Value:MBS("ServerSocket.Start"; 9000; "secret") ]
        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: [Listen]Next Script: [SetMessageScript]
                      Script NameLoadFile
                      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
                        • Set Variable [ $fpath; Value:Get(FilePath) ]
                        • Set Variable [ $fpath; Value:Substitute($fpath; Get(FileName) & ".fp7"; "serversocket.html") ]
                        • Set Variable [ $fpath; Value:Substitute($fpath; Get(FileName) & ".fmp12"; "serversocket.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 ]
                        • End If
                        • Set Variable [ $url; Value:Substitute($url; "file://localhost/"; "file:///") ]
                        • Set Web Viewer [ Object Name: "web"; URL: $url ]
                        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: [LoadFile]
                                      Script NameSetMessageScript
                                      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 [ ServerSocket from Webviewer::Message; Get ( ScriptParameter ) ]
                                          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: ServerSocket from Webviewer

                                                  Used functions: