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

MBS FileMaker Plugin Example Databases

WebViewer YouTube

All examples are included with download of MBS FileMaker Plugin.

WebViewer YouTube.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts5
Value Lists0
Custom Functions0
Custom Menus24
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
WebViewer YouTube
1 field defined, 1 record
WebViewer YouTube

Fields

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

      Layout Objects: WebViewer YouTube

      Regular Fields

      Field Name: WebViewer YouTube::URL
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 63 pt
      • Left: 75 pt
      • Bottom: 94 pt
      • Right: 796 pt
      • Anchoring: Left, Top
      Field Format:
      • Edit Box
      Field Behavior:
      • Allow field to be entered: In Find mode, In Browse mode
      • Touch keyboard type: Default for Data Type
      • Go to next field using: Tab key
      Yes

      Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Play Video
      • Top: 721 pt
      • Left: 14 pt
      • Bottom: 759 pt
      • Right: 274 pt
      • Anchoring: Left, Bottom
      Perform Script [ “Play” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Pause Video
      • Top: 721 pt
      • Left: 274 pt
      • Bottom: 759 pt
      • Right: 534 pt
      • Anchoring: Left, Bottom
      Perform Script [ “Pause” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Query Position
      • Top: 721 pt
      • Left: 536 pt
      • Bottom: 759 pt
      • Right: 796 pt
      • Anchoring: Left, Bottom
      Perform Script [ “Query Position” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Load URL
      • Top: 62 pt
      • Left: 816 pt
      • Bottom: 93 pt
      • Right: 986 pt
      • Anchoring: Left, Top
      Perform Script [ “Go To” ]

      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: 120 pt
      • Left: 8 pt
      • Bottom: 708 pt
      • Right: 1014 pt
      • Anchoring: Left and Right, Top and Bottom
      WebViewer YouTube::URL

      Script Hierarchy

      Play
      Pause
      Query Position
      Jump 10 seconds
      Go To

      Next Script: [Pause]
      Script NamePlay
      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("WebView.RunJavaScript"; "web"; "document.getElementsByTagName('video')[0].play();") ]
        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: [Play]Next Script: [Query Position]
                      Script NamePause
                      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("WebView.RunJavaScript"; "web"; "document.getElementsByTagName('video')[0].pause();") ]
                        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: [Pause]Next Script: [Jump 10 seconds]
                                      Script NameQuery Position
                                      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 [ $duration; Value:MBS("WebView.Evaluate"; "web"; "document.getElementsByTagName('video')[0].duration;") ]
                                        • Set Variable [ $position; Value:MBS("WebView.Evaluate"; "web"; "document.getElementsByTagName('video')[0].currentTime;") ]
                                        • Show Custom Dialog [ Title: "Position"; Message: MBS( "Math.FormatNumber"; $position; 2) & " of " & MBS( "Math.FormatNumber"; $duration; 2); Default Button: “OK”, Commit: “Yes” ]
                                        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: [Query Position]Next Script: [Go To]
                                                      Script NameJump 10 seconds
                                                      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 [ $duration; Value:MBS("WebView.Evaluate"; "web"; "document.getElementsByTagName('video')[0].duration;") ]
                                                          • Set Variable [ $position; Value:MBS("WebView.Evaluate"; "web"; "document.getElementsByTagName('video')[0].currentTime;") ]
                                                          • Show Custom Dialog [ Title: "Position"; Message: MBS( "Math.FormatNumber"; $position; 2) & " of " & MBS( "Math.FormatNumber"; $duration; 2); Default Button: “OK”, Commit: “Yes” ]
                                                          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: [Jump 10 seconds]
                                                                        Script NameGo To
                                                                        Run script with full access privilegesOff
                                                                        Include In MenuYes
                                                                        Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • Set Web Viewer [ Object Name: "web"; URL: WebViewer YouTube::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

                                                                                  Download example: WebViewer YouTube

                                                                                  Used functions: