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

MBS FileMaker Plugin Example Databases

WebView Copy and Paste

All examples are included with download of MBS FileMaker Plugin.

WebView Copy and Paste.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 1
Value Lists 0
Custom Functions 0
Custom Menus 24
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 Off
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
Tabelle
1 field defined, 1 record
Tabelle

Fields

Table Name: Tabelle - 1 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
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: Tabelle

      Regular Fields

      Field Name: Tabelle::Text
      Field Properties Coordinates Field Format Field Behavior Quick Find
      • Top: 57 pt
      • Left: 687 pt
      • Bottom: 527 pt
      • Right: 1014 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 Properties Coordinates Script/Script Step
        Type:
      • Text: Copy
      • Top: 11 pt
      • Left: 157 pt
      • Bottom: 45 pt
      • Right: 263 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("WebView.Copy"; "web") ]

      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Cut
      • Top: 11 pt
      • Left: 282 pt
      • Bottom: 45 pt
      • Right: 388 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("WebView.Cut"; "web") ]

      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Paste
      • Top: 11 pt
      • Left: 407 pt
      • Bottom: 45 pt
      • Right: 513 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("WebView.Paste"; "web") ]

      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Select All
      • Top: 11 pt
      • Left: 32 pt
      • Bottom: 45 pt
      • Right: 138 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("WebView.SelectAll"; "web") ]

      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Paste via Plugin
      • Top: 11 pt
      • Left: 687 pt
      • Bottom: 45 pt
      • Right: 793 pt
      • Anchoring: Left, Top
      Set Field [ Tabelle::Text; If ( Get(SystemPlatform) = 1; /* Mac */ MBS( "Clipboard.GetStyledText" ); /* Win */ MBS( "Clipboard.GetText" ) ) ]

      Fields:


      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Paste via FM
      • Top: 11 pt
      • Left: 805 pt
      • Bottom: 45 pt
      • Right: 911 pt
      • Anchoring: Left, Top
      Perform Script [ “Paste Clipboard” ]

      Scripts:


      Button Properties Coordinates Script/Script Step
        Type:
      • Text: Clear
      • Top: 11 pt
      • Left: 921 pt
      • Bottom: 45 pt
      • Right: 1014 pt
      • Anchoring: Left, Top
      Set Field [ Tabelle::Text; "" ]

      Fields:


      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: 57 pt
      • Left: 7 pt
      • Bottom: 527 pt
      • Right: 680 pt
      • Anchoring: Left, Top
      "https://www.mbsplugins.de/filemaker"

      Script Hierarchy

      Paste Clipboard

      Script Name Paste Clipboard
      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
        • Paste [ Tabelle::Text ] [ Select ]
        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 Copy and Paste

                Used functions: