MBS FileMaker Plugin Example Databases

WebView Message Handler

All examples are included with download of MBS FileMaker Plugin.

WebView Message Handler.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
WebView Message Handler
1 field defined, 1 record
WebView Message Handler

Fields

Table Name: WebView Message Handler - 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: WebView Message Handler

        Regular Fields

        Field Name: WebView Message Handler::HTML
        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
        • Top: 58 pt
        • Left: 56 pt
        • Bottom: 482 pt
        • Right: 362 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: Initialize
        • Top: 491 pt
        • Left: 56 pt
        • Bottom: 520 pt
        • Right: 156 pt
        • Anchoring: Left, Top
        Perform Script [ “Initialize” ]

        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: 59 pt
        • Left: 374 pt
        • Bottom: 520 pt
        • Right: 1016 pt
        • Anchoring: Left, Top
        "data:text/html;charset=UTF-8;base64," & Base64Encode ( WebView Message Handler::HTML )

        Script Hierarchy

        test
        Initialize

        Next Script: [Initialize]
        Script Nametest
        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 [ $param; Value:Get(ScriptParameter) ]
            • Show Custom Dialog [ Title: "FileMaker Script"; Message: $param; 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

                          Previous Script: [test]
                          Script NameInitialize
                          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 [ $r; Value:MBS( "Webview.AddScriptMessageHandler"; "web"; "test" ) ]
                            • If [ MBS("isError") ]
                            • Show Custom Dialog [ Title: "Error"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                            • End If
                            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 Message Handler

                                          Used functions:




                                          Links
                                          MBS Xojo PDF Plugins