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

MBS FileMaker Plugin Example Databases

PhotoAcquire

All examples are included with download of MBS FileMaker Plugin.

PhotoAcquire.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts7
Value Lists0
Custom Functions0
Custom Menus24
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
PhotoAcquire
7 fields defined, 0 record
PhotoAcquire

Fields

Table Name: PhotoAcquire - 7 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: English
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: English
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: English
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: English
                                  Account name of the user who last modified each record
                                          FilenameNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: English
                                              ImageNormal, BinaryAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1

                                                  Layout Objects: PhotoAcquire

                                                  Regular Fields

                                                  Field Name: PhotoAcquire::Filename
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 114 pt
                                                  • Left: 138 pt
                                                  • Bottom: 146 pt
                                                  • Right: 1003 pt
                                                  • Anchoring: Left and Right, 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

                                                  Field Name: PhotoAcquire::Image
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 150 pt
                                                  • Left: 138 pt
                                                  • Bottom: 755 pt
                                                  • Right: 1003 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

                                                  Buttons

                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Select Device
                                                  • Top: 58 pt
                                                  • Left: 13 pt
                                                  • Bottom: 92 pt
                                                  • Right: 163 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Select Device” ]

                                                  Scripts:


                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Settings Dialog
                                                  • Top: 58 pt
                                                  • Left: 163 pt
                                                  • Bottom: 92 pt
                                                  • Right: 313 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Show Settings Dialog” ]

                                                  Scripts:


                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Acquire Images
                                                  • Top: 58 pt
                                                  • Left: 313 pt
                                                  • Bottom: 92 pt
                                                  • Right: 463 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Acquire Images” ]

                                                  Scripts:


                                                  Script Hierarchy

                                                  Select Device
                                                  Select Device Copy
                                                  Show Settings Dialog
                                                  Acquire Images
                                                  Import Images
                                                  Show MBS Version
                                                  Show Current Device ID

                                                  Next Script: [Select Device Copy]
                                                  Script NameSelect Device
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    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: [Select Device]Next Script: [Show Settings Dialog]
                                                                  Script NameSelect Device Copy
                                                                  Run script with full access privilegesOff
                                                                  Include In MenuYes
                                                                  Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      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: [Select Device Copy]Next Script: [Acquire Images]
                                                                                    Script NameShow Settings Dialog
                                                                                    Run script with full access privilegesOff
                                                                                    Include In MenuYes
                                                                                    Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      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: [Show Settings Dialog]Next Script: [Import Images]
                                                                                                    Script NameAcquire Images
                                                                                                    Run script with full access privilegesOff
                                                                                                    Include In MenuYes
                                                                                                    Layouts that use this script
                                                                                                    Scripts that use this script
                                                                                                      Script Definition
                                                                                                      Script Steps
                                                                                                      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: [Acquire Images]Next Script: [Show MBS Version]
                                                                                                                  Script NameImport Images
                                                                                                                  Run script with full access privilegesOff
                                                                                                                  Include In MenuYes
                                                                                                                  Layouts that use this script
                                                                                                                    Scripts that use this script
                                                                                                                    Script Definition
                                                                                                                    Script Steps
                                                                                                                    • Go to Layout [ “PhotoAcquire” ]
                                                                                                                    • Set Variable [ $list; Value:MBS( "WinPhotoAcquire.Files") ]
                                                                                                                    • Set Variable [ $count; Value:ValueCount($list) ]
                                                                                                                    • If [ $count > 0 ]
                                                                                                                    • Set Variable [ $i; Value:1 ]
                                                                                                                    • Loop
                                                                                                                    • Set Variable [ $ImagePath; Value:GetValue($list; $i) ]
                                                                                                                    • If [ MBS( "Files.FileExists"; $ImagePath ) ]
                                                                                                                    • Set Variable [ $image; Value:MBS( "Container.ReadFile"; $ImagePath) ]
                                                                                                                    • New Record/Request
                                                                                                                    • Set Field [ PhotoAcquire::Filename; MBS( "Path.LastPathComponent"; $ImagePath ) ]
                                                                                                                    • Set Field [ PhotoAcquire::Image; $image ]
                                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                                    • End If
                                                                                                                    • #Next
                                                                                                                    • Set Variable [ $i; Value:$i + 1 ]
                                                                                                                    • Exit Loop If [ $i > $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 Images]Next Script: [Show Current Device ID]
                                                                                                                          Script NameShow MBS Version
                                                                                                                          Run script with full access privilegesOff
                                                                                                                          Include In MenuYes
                                                                                                                          Layouts that use this script
                                                                                                                            Scripts that use this script
                                                                                                                              Script Definition
                                                                                                                              Script Steps
                                                                                                                              • Show Custom Dialog [ Title: "MBS Version"; Message: MBS("Version") &" on " & MBS("platform"); Default Button: “OK”, Commit: “Yes” ]
                                                                                                                              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: [Show MBS Version]
                                                                                                                                            Script NameShow Current Device ID
                                                                                                                                            Run script with full access privilegesOff
                                                                                                                                            Include In MenuYes
                                                                                                                                            Layouts that use this script
                                                                                                                                              Scripts that use this script
                                                                                                                                                Script Definition
                                                                                                                                                Script Steps
                                                                                                                                                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: PhotoAcquire

                                                                                                                                                              Used functions: