MBS FileMaker Plugin Example Databases

Barcode Generation JSON

All examples are included with download of MBS FileMaker Plugin.

Barcode Generation JSON.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
Barcode Generation JSON
3 fields defined, 10 records
Barcode Generation JSON

Fields

Table Name: Barcode Generation JSON - 3 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
        JSONNormal, TextAuto-Enter:
        • Allow editing
        Validation:
        • Only during data entry
        Storage:
        • Repetitions: 1
        • Indexing: None
        • Automatically create indexes as needed
        • Index Language: German
            ImageNormal, BinaryAuto-Enter:
            • Allow editing
            Validation:
            • Only during data entry
            Storage:
            • Repetitions: 1

                Layout Objects: Barcode Generation JSON

                Regular Fields

                Field Name: Barcode Generation JSON::Description
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 52 pt
                • Left: 138 pt
                • Bottom: 73 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: Default for Data Type
                • Go to next field using: Tab key
                Yes

                Field Name: Barcode Generation JSON::JSON
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 75 pt
                • Left: 138 pt
                • Bottom: 288 pt
                • Right: 508 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

                Field Name: Barcode Generation JSON::Image
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 59 pt
                • Left: 645 pt
                • Bottom: 288 pt
                • Right: 1015 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: Format JSON
                • Top: 75 pt
                • Left: 519 pt
                • Bottom: 107 pt
                • Right: 634 pt
                • Anchoring: Left, Top
                Perform Script [ “Format JSON” ]

                Scripts:


                Button PropertiesCoordinatesScript/Script Step
                  Type:
                • Text: Generate Barcode
                • Top: 128 pt
                • Left: 519 pt
                • Bottom: 160 pt
                • Right: 634 pt
                • Anchoring: Left, Top
                Perform Script [ “Run” ]

                Scripts:


                Script Hierarchy

                Format JSON
                Run
                Clear Images

                Next Script: [Run]
                Script NameFormat JSON
                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 [ $json; Value:MBS("JSON.Format"; Barcode Generation JSON::JSON) ]
                  • If [ MBS("IsError") = 0 ]
                  • Set Variable [ $json; Value:MBS("JSON.Colorize"; $json) ]
                  • If [ MBS("IsError") = 0 ]
                  • Set Field [ Barcode Generation JSON::JSON; $json ]
                  • 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

                          Previous Script: [Format JSON]Next Script: [Clear Images]
                          Script NameRun
                          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 Generation JSON::Image; "" ]
                            • Set Variable [ $img; Value:MBS("Barcode.GenerateJSON"; Barcode Generation JSON::JSON) ]
                            • If [ MBS("IsError") = 0 ]
                            • Set Field [ Barcode Generation JSON::Image; MBS( "GMImage.WriteToPNGContainer"; $img; "barcode.png") ]
                            • Set Variable [ $r; Value:MBS( "GMImage.Destroy"; $img ) ]
                            • Else
                            • Show Custom Dialog [ Title: "Failed to create barcode"; Message: $img; 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: [Run]
                                    Script NameClear Images
                                    Run script with full access privilegesOff
                                    Include In MenuYes
                                    Layouts that use this script
                                      Scripts that use this script
                                        Script Definition
                                        Script Steps
                                        • Replace Field Contents [ Barcode Generation JSON::Image; Replace with calculation: "" ] [ No dialog ]
                                        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 Generation JSON

                                                Used functions:




                                                Links
                                                MBS Xojo Plugins