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
Tables 1
Relationships 0
Layouts 1
Scripts 9
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
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
Occurrences in Relationship Graph
WebView SelectedText
2 fields defined, 1 record
WebView SelectedText

Fields

Table Name: WebView SelectedText - 2 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
URL Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Text Normal, Text Auto-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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Script/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 Properties Coordinates Script/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 Properties Coordinates Script/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 Properties Coordinates Script/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 Properties Coordinates Script/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 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: 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 Name Go To URL
          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
            • 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 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: [-] Next Script: [Copy Plain Text]
                                        Script Name Copy Selected Text
                                        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
                                          • #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 Name Copy Plain Text
                                                  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: [Copy Plain Text] Next Script: [Copy HTML Text]
                                                            Script Name Copy Styled Text
                                                            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: [Copy Styled Text] Next Script: [-]
                                                                      Script Name Copy HTML Text
                                                                      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: [Copy HTML Text] Next Script: [Trace]
                                                                                Script Name -
                                                                                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: [-] Next Script: [Clear]
                                                                                                    Script Name Trace
                                                                                                    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
                                                                                                        • 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 Name Clear
                                                                                                                      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
                                                                                                                          • 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: