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

MBS FileMaker Plugin Example Databases

Signature Field

All examples are included with download of MBS FileMaker Plugin.

Signature Field.fmp12

Overview
Tables1
Relationships0
Layouts2
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
Signature Field
2 fields defined, 1 record
Signature Field

Fields

Table Name: Signature Field - 2 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
        DataNormal, BinaryAuto-Enter:
        • Allow editing
        Validation:
        • Only during data entry
        Storage:
        • Repetitions: 1

            Layout Objects: Signature Field

            Regular Fields

            Field Name: Signature Field::Data
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 62 pt
            • Left: 590 pt
            • Bottom: 279 pt
            • Right: 1101 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
            No

            Buttons

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Save To Container
              Additional Properties:
            • Change to hand cursor over button
            • Top: 290 pt
            • Left: 590 pt
            • Bottom: 312 pt
            • Right: 733 pt
            • Anchoring: Left, Top
            Perform Script [ “Save To Field” ]

            Scripts:


            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Clear Container
              Additional Properties:
            • Change to hand cursor over button
            • Top: 290 pt
            • Left: 749 pt
            • Bottom: 312 pt
            • Right: 892 pt
            • Anchoring: Left, Top
            Set Field [ Signature Field::Data; "" ]

            Fields:


            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Clear
            • Top: 290 pt
            • Left: 431 pt
            • Bottom: 312 pt
            • Right: 524 pt
            • Anchoring: Left, Top
            Set Web Viewer [ Object Name: "web"; Action: Reload ]

            Web Viewer Controls

            Web Viewer Control PropertiesCoordinatesWeb Address
              Object Name:
            • web
              Additional Properties:
            • Allow interaction with web viewer content
            • Top: 62 pt
            • Left: 13 pt
            • Bottom: 279 pt
            • Right: 524 pt
            • Anchoring: Left, Top
            Let ( [ b = 511 ; h = 217 ] ; Substitute ( "data:text/html," & Signature Field::html ; [ "@@SignatureWidth@@" ; b & "px" ] ; [ "@@SignatureHeight@@" ; h & "px" ] ) )

            Layout Objects: HTML

            Regular Fields

            Field Name: Signature Field::html
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 57 pt
            • Left: 7 pt
            • Bottom: 525 pt
            • Right: 1016 pt
            • Anchoring: Left and Right, Top and Bottom
            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

            Script Hierarchy

            Save To Field

            Script NameSave To Field
            Run script with full access privilegesOff
            Include In MenuNo
            Layouts that use this script
            Scripts that use this script
              Script Definition
              Script Steps
              • Set Variable [ $r; Value:MBS( "WebView.RunJavaScript" ; "web"; "formtest.output.value = document.getElementsByTagName('canvas')[0].toDataURL('image/png');" ) ]
              • Set Variable [ $dataURL; Value:MBS( "WebView.GetFormTextAreaValue" ; "web"; "formtest"; "output"; 0 ) ]
              • Set Variable [ $p; Value:Position($DataURL; ","; 1; 1) ]
              • If [ $p > 0 ]
              • Set Variable [ $data; Value:Middle($dataURL; $p + 1; Length($dataURL)) ]
              • Set Field [ Signature Field::Data; Base64Decode ( $data; "signature.png" ) ]
              • 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: Signature Field

                      Used functions: