MBS FileMaker Plugin Example Databases

USB Devices

All examples are included with download of MBS FileMaker Plugin.

USB Devices.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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, 19 records
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: 60 pt
                      • Left: 12 pt
                      • Bottom: 74 pt
                      • Right: 154 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: USB Devices::VendorName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 60 pt
                      • Left: 155 pt
                      • Bottom: 74 pt
                      • Right: 297 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: USB Devices::ProductID
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 60 pt
                      • Left: 305 pt
                      • Bottom: 74 pt
                      • Right: 447 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: USB Devices::ProductName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 60 pt
                      • Left: 449 pt
                      • Bottom: 74 pt
                      • Right: 591 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: USB Devices::SerialNumber
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 60 pt
                      • Left: 593 pt
                      • Bottom: 74 pt
                      • Right: 837 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: Update
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 12 pt
                      • Left: 12 pt
                      • Bottom: 31 pt
                      • Right: 97 pt
                      • Anchoring: Left, Top
                      Perform Script [ “SearchDevices” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Test FindDevice
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 12 pt
                      • Left: 109 pt
                      • Bottom: 31 pt
                      • Right: 204 pt
                      • Anchoring: Left, Top
                      Show Custom Dialog [ Title: "FindDevice"; Message: MBS("USB.FindDevice"; 1452; 33795); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Test FindSerialNumber
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 12 pt
                      • Left: 217 pt
                      • Bottom: 31 pt
                      • Right: 348 pt
                      • Anchoring: Left, Top
                      Show Custom Dialog [ Title: "USB.FindSerialNumber"; Message: MBS("USB.FindSerialNumber"; "8JA3A2X4UDCLJA00"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

                      Script Hierarchy

                      SearchDevices

                      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 ]
                        • Set Variable [ $count; Value:MBS("USB.Count") ]
                        • Set Variable [ $index; Value:0 ]
                        • Loop
                        • 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
                        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:




                                Links
                                MBS FileMaker blog