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

MBS FileMaker Plugin Example Databases

WebViewer Links

All examples are included with download of MBS FileMaker Plugin.

WebViewer Links.fmp12

Overview
Tables1
Relationships0
Layouts1
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
0 fields defined, 1 record
Start

Layout Objects: Start

Buttons

Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Get Links
  • Top: 6 pt
  • Left: 8 pt
  • Bottom: 31 pt
  • Right: 133 pt
  • Anchoring: Left, Top
Perform Script [ “GetLinks” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: First Link
  • Top: 6 pt
  • Left: 146 pt
  • Bottom: 31 pt
  • Right: 271 pt
  • Anchoring: Left, Top
Show Custom Dialog [ Title: "Links"; Message: MBS("WebView.GetLink"; "web";0; "href"); Default Button: “OK”, Commit: “Yes” ]

Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Count Links
  • Top: 6 pt
  • Left: 284 pt
  • Bottom: 31 pt
  • Right: 409 pt
  • Anchoring: Left, Top
Show Custom Dialog [ Title: "Link Count"; Message: MBS("WebView.GetLinkCount"; "web"); Default Button: “OK”, Commit: “Yes” ]

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: 36 pt
  • Left: 8 pt
  • Bottom: 622 pt
  • Right: 665 pt
  • Anchoring: Left and Right, Top and Bottom
"http://www.monkeybreadsoftware.de/"

Script Hierarchy

GetLinks

Script NameGetLinks
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 [ $Count; Value:MBS("WebView.GetLinkCount"; "web") ]
    • Set Variable [ $Index; Value:0 ]
    • Set Variable [ $links; Value:"" ]
    • Loop
    • Exit Loop If [ $Index ≥ $Count ]
    • Set Variable [ $links; Value:$links & MBS("WebView.GetLink"; "web"; $Index; "href") & " -> " & MBS("WebView.GetLink"; "web"; $Index; "innertext") & "¶" ]
    • Set Variable [ $Index; Value:$Index+1 ]
    • End Loop
    • Show Custom Dialog [ Title: "Alle Links"; Message: $links; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
    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 Links

                  Used functions: