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

MBS FileMaker Plugin Example Databases

Zebra ZPL Sample

All examples are included with download of MBS FileMaker Plugin.

Zebra ZPL Sample.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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
ZPL Senden
6 fields defined, 2 records
ZPL Senden

Fields

Table Name: ZPL Senden - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
uniqueIDNormal, NumberAuto-Enter:
  • Serial: Generate: On creation, Next value: 4, Increment: 1
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: All
  • Index Language: English
        oneCalculated, NumberCalculation: Auto-Enter:
        • Always evaluate
        Storage:
        • Repetitions: 1
        • Indexing: All
        • Index Language: English
                CommandNormal, TextAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: English
                    IPNormal, TextAuto-Enter:
                    • Allow editing
                    Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: English
                        PortNormal, TextAuto-Enter:
                        • Allow editing
                        Validation:
                        • Only during data entry
                        Storage:
                        • Repetitions: 1
                        • Indexing: None
                        • Automatically create indexes as needed
                        • Index Language: English
                            NotesNormal, TextAuto-Enter:
                            • Allow editing
                            Validation:
                            • Only during data entry
                            Storage:
                            • Repetitions: 1
                            • Indexing: None
                            • Automatically create indexes as needed
                            • Index Language: English

                                  Layout Objects: ZPL Senden

                                  Regular Fields

                                  Field Name: ZPL Senden::uniqueID
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 114 pt
                                  • Left: 138 pt
                                  • Bottom: 145 pt
                                  • Right: 217 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: ZPL Senden::Command
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 154 pt
                                  • Left: 140 pt
                                  • Bottom: 382 pt
                                  • Right: 858 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Edit Box
                                  • Include vertical scrollbar
                                  Field Behavior:
                                  • Allow field to be entered: In Find mode, In Browse mode
                                  • Disable visual spell-checking
                                  • Touch keyboard type: Default for Data Type
                                  • Go to next field using: Tab key
                                  Yes

                                  Field Name: ZPL Senden::IP
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 573 pt
                                  • Left: 143 pt
                                  • Bottom: 604 pt
                                  • Right: 396 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Edit Box
                                  Field Behavior:
                                  • Allow field to be entered: In Find mode, In Browse mode
                                  • Disable visual spell-checking
                                  • Touch keyboard type: Default for Data Type
                                  • Go to next field using: Tab key
                                  Yes

                                  Field Name: ZPL Senden::Port
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 608 pt
                                  • Left: 143 pt
                                  • Bottom: 639 pt
                                  • Right: 396 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Edit Box
                                  Field Behavior:
                                  • Allow field to be entered: In Find mode, In Browse mode
                                  • Disable visual spell-checking
                                  • Touch keyboard type: Default for Data Type
                                  • Go to next field using: Tab key
                                  Yes

                                  Field Name: ZPL Senden::Notes
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 388 pt
                                  • Left: 143 pt
                                  • Bottom: 562 pt
                                  • Right: 858 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

                                  Buttons

                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Run Command
                                  • Top: 114 pt
                                  • Left: 621 pt
                                  • Bottom: 148 pt
                                  • Right: 858 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “Script” ]

                                  Scripts:


                                  Script Hierarchy

                                  Script

                                  Script NameScript
                                  Run script with full access privilegesOff
                                  Include In MenuNo
                                  Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • Set Error Capture [ On ]
                                    • Allow User Abort [ Off ]
                                    • Set Variable [ $IP; Value:ZPL Senden::IP ]
                                    • Set Variable [ $Job; Value:ZPL Senden::Command ]
                                    • Set Variable [ $Port; Value:ZPL Senden::Port ]
                                    • #connect to printer
                                    • Set Variable [ $Socket; Value:MBS("Socket.Connect" ; $IP ; $Port ; 30; 4) ]
                                    • If [ MBS("IsError") ]
                                    • Set Variable [ $x; Value:MBS("Socket.Close"; $Socket) ]
                                    • Show Custom Dialog [ Title: "Error"; Message: $Socket; Default Button: “Oops”, Commit: “Yes” ]
                                    • Exit Script [ Result: $Socket ]
                                    • End If
                                    • Set Variable [ $Max; Value:ValueCount ( $Job ) ]
                                    • Set Variable [ $Counter; Value:1 ]
                                    • If [ $Max > 0 ]
                                    • #send commands line by line
                                    • Loop
                                    • Set Variable [ $JobLine; Value:GetValue ( $Job ; $Counter ) ]
                                    • Set Variable [ $SendData; Value:MBS( "Socket.Write"; $Socket; "^0*" & $JobLine ) ]
                                    • Set Variable [ $SendData; Value:MBS("Socket.WriteHex"; $Socket ; "0D") ]
                                    • Set Variable [ $Counter; Value:$Counter + 1 ]
                                    • Exit Loop If [ $Counter > $Max ]
                                    • End Loop
                                    • #send end command
                                    • Set Variable [ $SendData; Value:MBS( "Socket.Write"; $Socket; "^0!GO") ]
                                    • Set Variable [ $SendData; Value:MBS("Socket.WriteHex"; $Socket ; "0D") ]
                                    • Set Variable [ $SendData; Value:MBS("Socket.Close"; $Socket) ]
                                    • 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: Zebra ZPL Sample

                                            Used functions: