MBS FileMaker Plugin Example Databases

Barcode Detection

All examples are included with download of MBS FileMaker Plugin.

Barcode Detection.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
Value Lists0
Custom Functions0
Custom Menus33
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
Barcode Detection
5 fields defined, 5 records
Barcode Detection

Fields

Table Name: Barcode Detection - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
DescriptionNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
        ExpectedTypeNormal, TextAuto-Enter:
        • Allow editing
        Validation:
        • Only during data entry
        Storage:
        • Repetitions: 1
        • Indexing: None
        • Automatically create indexes as needed
        • Index Language: German
            ActualTypeNormal, TextAuto-Enter:
            • Allow editing
            Validation:
            • Only during data entry
            Storage:
            • Repetitions: 1
            • Indexing: None
            • Automatically create indexes as needed
            • Index Language: German
                InputImageNormal, BinaryAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                    ResultNormal, TextAuto-Enter:
                    • Allow editing
                    Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: German

                        Layout Objects: Barcode Detection

                        Regular Fields

                        Field Name: Barcode Detection::Description
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 24 pt
                        • Left: 138 pt
                        • Bottom: 38 pt
                        • Right: 391 pt
                        • Anchoring: Left, Top
                        Field Format:
                        • Edit Box
                        Field Behavior:
                        • Allow field to be entered: In Find mode, In Browse mode
                        • Touch keyboard type: System Default
                        • Go to next field using: Tab key
                        Yes

                        Field Name: Barcode Detection::ExpectedType
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 42 pt
                        • Left: 138 pt
                        • Bottom: 56 pt
                        • Right: 391 pt
                        • Anchoring: Left, Top
                        Field Format:
                        • Edit Box
                        Field Behavior:
                        • Allow field to be entered: In Find mode, In Browse mode
                        • Touch keyboard type: System Default
                        • Go to next field using: Tab key
                        Yes

                        Field Name: Barcode Detection::ActualType
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 222 pt
                        • Left: 138 pt
                        • Bottom: 236 pt
                        • Right: 391 pt
                        • Anchoring: Left, Top
                        Field Format:
                        • Edit Box
                        Field Behavior:
                        • Allow field to be entered: In Find mode, In Browse mode
                        • Touch keyboard type: System Default
                        • Go to next field using: Tab key
                        Yes

                        Field Name: Barcode Detection::InputImage
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 59 pt
                        • Left: 138 pt
                        • Bottom: 184 pt
                        • Right: 391 pt
                        • Anchoring: Left, Top
                        Field Format:
                        • Edit Box
                        Field Behavior:
                        • Allow field to be entered: In Find mode, In Browse mode
                        • Touch keyboard type: System Default
                        • Go to next field using: Tab key
                        No

                        Field Name: Barcode Detection::Result
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 204 pt
                        • Left: 138 pt
                        • Bottom: 218 pt
                        • Right: 391 pt
                        • Anchoring: Left, Top
                        Field Format:
                        • Edit Box
                        Field Behavior:
                        • Allow field to be entered: In Find mode, In Browse mode
                        • Touch keyboard type: System Default
                        • Go to next field using: Tab key
                        Yes

                        Group Buttons

                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Run
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rectangular
                        • Top: 90 pt
                        • Left: 420 pt
                        • Bottom: 115 pt
                        • Right: 529 pt
                        • Anchoring: Left, Top
                        Perform Script [ “GetBarcode” ]

                        Scripts:


                        Script Hierarchy

                        GetBarcode
                        Clear

                        Next Script: [Clear]
                        Script NameGetBarcode
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                        Scripts that use this script
                          Script Definition
                          Script Steps
                          • Set Field [ Barcode Detection::ActualType; "" ]
                          • Set Field [ Barcode Detection::Result; "" ]
                          • If [ IsEmpty(Barcode Detection::InputImage) ]
                          • Show Custom Dialog [ Message: "Image Missing!"; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                          • Exit Script [ ]
                          • End If
                          • Set Variable [ $r; Value:MBS("Barcode.Detect"; Barcode Detection::InputImage; Barcode Detection::ExpectedType; 1) ]
                          • If [ MBS("IsError") ]
                          • Set Field [ Barcode Detection::Result; $r ]
                          • Else
                          • Set Variable [ $pos; Value:Position ( $r ; ": "; 1; 1 ) ]
                          • Set Field [ Barcode Detection::Result; Middle($r; $pos+2; Length($r)) ]
                          • Set Field [ Barcode Detection::ActualType; Left($r; $pos-1) ]
                          • 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: [GetBarcode]
                                  Script NameClear
                                  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 Record/Request/Page [ First ]
                                      • Loop
                                      • Set Field [ Barcode Detection::Result; "" ]
                                      • Set Field [ Barcode Detection::ActualType; "" ]
                                      • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                      • Go to Record/Request/Page [ Next; Exit after last ]
                                      • End Loop
                                      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: Barcode Detection

                                              Used functions:




                                              Links
                                              MBS Xojo Chart Plugins