MBS FileMaker Plugin Example Databases

Serial Port

All examples are included with download of MBS FileMaker Plugin.

Serial Port.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
SerialPort
4 fields defined, 1 record
SerialPort

Fields

Table Name: SerialPort - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
DeviceNameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
            ResultNormal, TextAuto-Enter:
            • Allow editing
            Validation:
            • Only during data entry
            Storage:
            • Repetitions: 1
            • Indexing: None
            • Automatically create indexes as needed
            • Index Language: German
                DeviceIDNormal, NumberAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German

                    Layout Objects: SerialPort

                    Regular Fields

                    Field Name: SerialPort::DeviceName
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 66 pt
                    • Left: 138 pt
                    • Bottom: 80 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: SerialPort::Text
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 162 pt
                    • Left: 138 pt
                    • Bottom: 176 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: SerialPort::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 246 pt
                    • Left: 138 pt
                    • Bottom: 260 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: SerialPort::DeviceID
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 144 pt
                    • Left: 138 pt
                    • Bottom: 158 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: System Default
                    • Go to next field using: Tab key
                    Yes

                    Group Buttons

                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: List Ports
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 12 pt
                    • Left: 30 pt
                    • Bottom: 37 pt
                    • Right: 139 pt
                    • Anchoring: Left, Top
                    Perform Script [ “ListPorts” ]

                    Scripts:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Open Device
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 96 pt
                    • Left: 30 pt
                    • Bottom: 121 pt
                    • Right: 139 pt
                    • Anchoring: Left, Top
                    Perform Script [ “OpenDevice” ]

                    Scripts:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Write Text
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 198 pt
                    • Left: 30 pt
                    • Bottom: 223 pt
                    • Right: 139 pt
                    • Anchoring: Left, Top
                    Set Field [ SerialPort::Result; MBS("SerialPort.Write"; SerialPort::DeviceID; SerialPort::Text; "dos") ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Close Device
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 96 pt
                    • Left: 144 pt
                    • Bottom: 121 pt
                    • Right: 253 pt
                    • Anchoring: Left, Top
                    Perform Script [ “CloseDevice” ]

                    Scripts:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Write new line
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 198 pt
                    • Left: 144 pt
                    • Bottom: 223 pt
                    • Right: 253 pt
                    • Anchoring: Left, Top
                    Set Field [ SerialPort::Result; MBS("SerialPort.WriteHex"; SerialPort::DeviceID; "0D") ]

                    Fields:


                    Button PropertiesCoordinatesScript/Script Step
                      Type:
                    • Text: Write clear
                      Additional Properties:
                    • Change to hand cursor over button
                    • Rectangular
                    • Top: 198 pt
                    • Left: 258 pt
                    • Bottom: 223 pt
                    • Right: 367 pt
                    • Anchoring: Left, Top
                    Set Field [ SerialPort::Result; MBS("SerialPort.WriteByte"; SerialPort::DeviceID; 12) ]

                    Fields:


                    Script Hierarchy

                    ListPorts
                    CloseDevice
                    OpenDevice

                    Next Script: [CloseDevice]
                    Script NameListPorts
                    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: "Serial Ports"; Message: MBS("SerialPort.List") ]
                      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: [ListPorts]Next Script: [OpenDevice]
                                    Script NameCloseDevice
                                    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 [ SerialPort::Result; MBS("SerialPort.Close"; SerialPort::DeviceID) ]
                                      • Set Field [ SerialPort::DeviceID; "" ]
                                      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: [CloseDevice]
                                              Script NameOpenDevice
                                              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 [ SerialPort::Result; MBS("SerialPort.Open"; SerialPort::DeviceName) ]
                                                • If [ GetAsNumber(SerialPort::Result) = 0 ]
                                                • Set Field [ SerialPort::DeviceID; "" ]
                                                • Else
                                                • Set Field [ SerialPort::DeviceID; SerialPort::Result ]
                                                • 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: Serial Port

                                                        Used functions:




                                                        Links
                                                        MBS Xojo Plugins