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
Tables 1
Relationships 0
Layouts 1
Scripts 4
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalistisch
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Comments
Occurrences in Relationship Graph
USB Devices
5 fields defined, 0 record
USB Devices

Fields

Table Name: USB Devices - 5 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
VendorID Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      VendorName Normal, Text Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ProductID Normal, Text Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              ProductName Normal, Text Auto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  SerialNumber Normal, Text Auto-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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Script/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 Name SearchDevices
                      Run script with full access privileges Off
                      Siri Shortcut Visible Off
                      Include In Menu Yes
                      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 [ Flush: Always ]
                        • #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 Name Find Device by Serial
                                Run script with full access privileges Off
                                Siri Shortcut Visible Off
                                Include In Menu No
                                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 Name Find Device by ID
                                                  Run script with full access privileges Off
                                                  Siri Shortcut Visible Off
                                                  Include In Menu No
                                                  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 Name Clear
                                                                    Run script with full access privileges Off
                                                                    Siri Shortcut Visible Off
                                                                    Include In Menu Yes
                                                                    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: