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

MBS FileMaker Plugin Example Databases

USB Devices

All examples are included with download of MBS FileMaker Plugin.

USB Devices.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
USB Devices
5 fields defined, 0 record
USB Devices

Fields

Table Name: USB Devices - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
VendorIDNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      VendorNameNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ProductIDNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              ProductNameNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  SerialNumberNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                      Layout Objects: USB Devices

                      Regular Fields

                      Field Name: USB Devices::VendorID
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 89 pt
                      • Left: 12 pt
                      • Bottom: 108 pt
                      • Right: 126 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: USB Devices::VendorName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 89 pt
                      • Left: 131 pt
                      • Bottom: 108 pt
                      • Right: 308 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: USB Devices::ProductID
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 89 pt
                      • Left: 313 pt
                      • Bottom: 108 pt
                      • Right: 427 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: USB Devices::ProductName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 89 pt
                      • Left: 432 pt
                      • Bottom: 108 pt
                      • Right: 609 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: USB Devices::SerialNumber
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 89 pt
                      • Left: 614 pt
                      • Bottom: 108 pt
                      • Right: 759 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: Update
                      • Top: 9 pt
                      • Left: 11 pt
                      • Bottom: 36 pt
                      • Right: 180 pt
                      • Anchoring: Left, Top
                      Perform Script [ “SearchDevices” ]

                      Scripts:


                      Script Hierarchy

                      SearchDevices
                      Find Device by Serial
                      Find Device by ID
                      Clear

                      Next Script: [Find Device by Serial]
                      Script NameSearchDevices
                      Run script with full access privilegesOff
                      Include In MenuYes
                      Layouts that use this script
                      Scripts that use this script
                        Script Definition
                        Script Steps
                        • Delete All Records [ No dialog ]
                        • #calling count triggers the plugin to look for devcies
                        • Set Variable [ $count; Value:MBS("USB.Count") ]
                        • If [ $count > 0 ]
                        • Set Variable [ $index; Value:0 ]
                        • Loop
                        • #we got one, so write it to a record:
                        • New Record/Request
                        • Set Field [ USB Devices::VendorID; MBS("USB.GetVendorID"; $index) ]
                        • Set Field [ USB Devices::VendorName; MBS("USB.GetVendorName"; $index) ]
                        • Set Field [ USB Devices::ProductID; MBS("USB.GetProductID"; $index) ]
                        • Set Field [ USB Devices::ProductName; MBS("USB.GetProductName"; $index) ]
                        • Set Field [ USB Devices::SerialNumber; MBS("USB.GetSerialNumber"; $index) ]
                        • Commit Records/Requests
                        • Set Variable [ $index; Value:$index + 1 ]
                        • Exit Loop If [ $index = $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: [SearchDevices]Next Script: [Find Device by ID]
                                Script NameFind Device by Serial
                                Run script with full access privilegesOff
                                Include In MenuNo
                                Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • #Please change to one of your serial numbers
                                    • Show Custom Dialog [ Title: "USB.FindSerialNumber"; Message: MBS("USB.FindSerialNumber"; "8JA3A2X4UDCLJA00"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                    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: [Find Device by Serial]Next Script: [Clear]
                                                  Script NameFind Device by ID
                                                  Run script with full access privilegesOff
                                                  Include In MenuNo
                                                  Layouts that use this script
                                                    Scripts that use this script
                                                      Script Definition
                                                      Script Steps
                                                      • #Please change to one of your device IDs
                                                      • Show Custom Dialog [ Title: "FindDevice"; Message: MBS("USB.FindDevice"; 1452; 33795); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                      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: [Find Device by ID]
                                                                    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
                                                                        • Truncate Table [ No dialog; Table: “USB Devices” ]
                                                                        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: USB Devices

                                                                                      Used functions: