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
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus0
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
Tabelle
1 field defined, 1 record
Tabelle

Fields

Table Name: Tabelle - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
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: Tabelle

      Regular Fields

      Field Name: Tabelle::Text
      Field PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesWeb 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
      "http://mbs-plugins.com"

      Script Hierarchy

      Paste Clipboard

      Script NamePaste Clipboard
      Run script with full access privilegesOff
      Include In MenuYes
      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:




                Links
                MBS Xojo Chart Plugins