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

MBS FileMaker Plugin Example Databases

WebView SelectedText

All examples are included with download of MBS FileMaker Plugin.

WebView SelectedText.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts9
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
WebView SelectedText
2 fields defined, 1 record
WebView SelectedText

Fields

Table Name: WebView SelectedText - 2 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
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: WebView SelectedText

          Regular Fields

          Field Name: WebView SelectedText::URL
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 24 pt
          • Left: 50 pt
          • Bottom: 55 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

          Field Name: WebView SelectedText::Text
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 72 pt
          • Left: 11 pt
          • Bottom: 724 pt
          • Right: 391 pt
          • Anchoring: Left, Top and Bottom
          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

          Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Go To URL ⌘1
          • Top: 24 pt
          • Left: 407 pt
          • Bottom: 55 pt
          • Right: 539 pt
          • Anchoring: Left, Top
          Perform Script [ “Go To URL” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Selected Text ⌘2
          • Top: 24 pt
          • Left: 554 pt
          • Bottom: 55 pt
          • Right: 686 pt
          • Anchoring: Left, Top
          Perform Script [ “Copy Selected Text” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Plain Text ⌘3
          • Top: 24 pt
          • Left: 701 pt
          • Bottom: 55 pt
          • Right: 833 pt
          • Anchoring: Left, Top
          Perform Script [ “Copy Plain Text” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Styled Text ⌘4
          • Top: 24 pt
          • Left: 848 pt
          • Bottom: 55 pt
          • Right: 980 pt
          • Anchoring: Left, Top
          Perform Script [ “Copy Styled Text” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: HTML Text ⌘5
          • Top: 24 pt
          • Left: 995 pt
          • Bottom: 55 pt
          • Right: 1127 pt
          • Anchoring: Left, Top
          Perform Script [ “Copy HTML Text” ]

          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: 65 pt
          • Left: 407 pt
          • Bottom: 724 pt
          • Right: 1127 pt
          • Anchoring: Left and Right, Top and Bottom

          Script Hierarchy

          Go To URL
          -
          Copy Selected Text
          Copy Plain Text
          Copy Styled Text
          Copy HTML Text
          -
          Trace
          Clear

          Next Script: [-]
          Script NameGo To URL
          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: WebView SelectedText::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: [Go To URL]Next Script: [Copy Selected Text]
                    Script Name-
                    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: [-]Next Script: [Copy Plain Text]
                                        Script NameCopy Selected Text
                                        Run script with full access privilegesOff
                                        Include In MenuYes
                                        Layouts that use this script
                                        Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • #copy selected text. May need to be run via Menu keyboard shortcut as clicking button clears selection
                                          • Set Field [ WebView SelectedText::Text; MBS( "WebView.SelectedText"; "web"; 1 ) ]
                                          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: [Copy Selected Text]Next Script: [Copy Styled Text]
                                                  Script NameCopy Plain Text
                                                  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: [Copy Plain Text]Next Script: [Copy HTML Text]
                                                            Script NameCopy Styled Text
                                                            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: [Copy Styled Text]Next Script: [-]
                                                                      Script NameCopy HTML Text
                                                                      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: [Copy HTML Text]Next Script: [Trace]
                                                                                Script Name-
                                                                                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: [-]Next Script: [Clear]
                                                                                                    Script NameTrace
                                                                                                    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") ]
                                                                                                        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: [Trace]
                                                                                                                      Script NameClear
                                                                                                                      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 [ WebView SelectedText::Text; "" ]
                                                                                                                          • Set Field [ WebView SelectedText::URL; "https://www.mbs-plugins.com/" ]
                                                                                                                          • Commit Records/Requests [ No dialog ]
                                                                                                                          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: WebView SelectedText

                                                                                                                                  Used functions: