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

MBS FileMaker Plugin Example Databases

WebViewer link targets

All examples are included with download of MBS FileMaker Plugin.

WebViewer link targets.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts1
Value Lists0
Custom Functions0
Custom Menus32
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
Start
1 field defined, 1 record
Start

Fields

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

        Layout Objects: Start

        Regular Fields

        Field Name: Start::html
        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
        • Top: 507 pt
        • Left: 888 pt
        • Bottom: 740 pt
        • Right: 1096 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: Fix Links
        • Top: 48 pt
        • Left: 9 pt
        • Bottom: 78 pt
        • Right: 185 pt
        • Anchoring: Left, Top
        Perform Script [ “Fix Links” ]

        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: 86 pt
        • Left: 6 pt
        • Bottom: 747 pt
        • Right: 877 pt
        • Anchoring: Left, Top
        "data:text/html;base64," & MBS("Text.EncodeToBase64"; Start::html)

        Layout Objects: Links

        Regular Fields

        Field Name: <Missing Field>
        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
        • Top: 18 pt
        • Left: 30 pt
        • Bottom: 32 pt
        • Right: 553 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

        Script Hierarchy

        Fix Links

        Script NameFix Links
        Run script with full access privilegesOff
        Include In MenuNo
        Layouts that use this script
        Scripts that use this script
          Script Definition
          Script Steps
          • #run a little JavaScript to change target values for all links
          • #target is _blank to open in new tab.
          • Set Variable [ $result; Value:MBS("WebView.RunJavaScript"; "browser"; "for (i = 0; i<document.links.length; i++) { if (document.links[i].target == '_blank') document.links[i].target = ''; }") ]
          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 link targets

                        Used functions: