MBS FileMaker Plugin Example Databases

DocumentCameraScan test

All examples are included with download of MBS FileMaker Plugin.

DocumentCameraScan test.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
OnFirstWindowOpenScript: Initialize
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Images
1 field defined, 1 record
Images

Fields

Table Name: Images - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ImageNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1

      Layout Objects: Images

      Regular Fields

      Field Name: Images::Image
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 57 pt
      • Left: 7 pt
      • Bottom: 452 pt
      • Right: 315 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
      No

      Merge Fields

      Field PropertiesCoordinatesFieldsQuick Find
        Text:
      • Installed Plug-ins
      • Top: 464 pt
      • Left: 6 pt
      • Bottom: 531 pt
      • Right: 314 pt
      • Anchoring: Left and Right, Bottom
        No

        Buttons

        Button PropertiesCoordinatesScript/Script Step
          Type:
        • Text: Scan
        • Top: 8 pt
        • Left: 50 pt
        • Bottom: 42 pt
        • Right: 169 pt
        • Anchoring: Left, Top
        Perform Script [ “Scan” ]

        Scripts:


        Script Hierarchy

        Scan
        Trigger
        Import
        Initialize

        Next Script: [Trigger]
        Script NameScan
        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( "DocumentCameraScan.SetScript"; Get(FileName); "Trigger" ) ]
          • Set Variable [ $r; Value:MBS( "DocumentCameraScan.Scan" ) ]
          • If [ MBS("IsError") ]
          • Show Custom Dialog [ Title: "Failed to scan"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
          • 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

                        Previous Script: [Scan]Next Script: [Import]
                        Script NameTrigger
                        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) ]
                            • If [ $param = "Error" ]
                            • Show Custom Dialog [ Title: "Failed to scan"; Message: MBS( "DocumentCameraScan.ErrorMessage" ); Default Button: “OK”, Commit: “Yes” ]
                            • Else If [ $param = "Scan" ]
                            • Perform Script [ “Import” ]
                            • Else If [ $param = "Cancel" ]
                            • #do nothing
                            • 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

                                        Previous Script: [Trigger]Next Script: [Initialize]
                                        Script NameImport
                                        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( "DocumentCameraScan.PageCount" ) ]
                                          • If [ $count > 0 ]
                                          • Set Variable [ $index; Value:0 ]
                                          • Loop
                                          • #store image
                                          • Go to Layout [ “Images” ]
                                          • New Record/Request
                                          • Set Field [ Images::Image; MBS( "DocumentCameraScan.PageImage"; $Index; "PNG"; "test.png") ]
                                          • Commit Records/Requests
                                          • #next
                                          • Set Variable [ $index; Value:$index + 1 ]
                                          • Exit Loop If [ $index ≥ $count ]
                                          • End Loop
                                          • 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

                                                Previous Script: [Import]
                                                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( "Debug.Enable" ) ]
                                                    • If [ MBS("DocumentCameraScan.Initialize") = 0 ]
                                                    • Set Variable [ $r; Value:MBS( "DocumentCameraScan.Initialize" ) ]
                                                    • If [ MBS("IsError") ]
                                                    • Show Custom Dialog [ Title: "Failed to initialize"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                    • End If
                                                    • 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: DocumentCameraScan test

                                                                  Used functions:




                                                                  Links
                                                                  MBS Xojo Plugins