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

MBS FileMaker Plugin Example Databases

Printer Info

All examples are included with download of MBS FileMaker Plugin.

Printer Info.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus0
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
Printer Info
3 fields defined, 0 record
Printer Info

Fields

Table Name: Printer Info - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrinterNameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      KeyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ValueNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: Printer Info

              Regular Fields

              Field Name: Printer Info::PrinterName
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 5 pt
              • Left: 138 pt
              • Bottom: 27 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
              No

              Field Name: Printer Info::Key
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 108 pt
              • Left: 3 pt
              • Bottom: 130 pt
              • Right: 256 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: Printer Info::Value
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 108 pt
              • Left: 263 pt
              • Bottom: 130 pt
              • Right: 603 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

              Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Query Printer Info
              • Top: 39 pt
              • Left: 409 pt
              • Bottom: 66 pt
              • Right: 549 pt
              • Anchoring: Left, Top
              Perform Script [ “QueryPrinterInfo” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Get first printer name
              • Top: 7 pt
              • Left: 409 pt
              • Bottom: 36 pt
              • Right: 549 pt
              • Anchoring: Left, Top
              Perform Script [ “QueryPrinterName” ]

              Scripts:


              Script Hierarchy

              QueryPrinterInfo
              QueryPrinterName
              Clear

              Next Script: [QueryPrinterName]
              Script NameQueryPrinterInfo
              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 [ $keys; Value:MBS("Printer.PrinterInfo"; Printer Info::PrinterName; "keys") ]
                • If [ MBS("IsError") ]
                • Show Custom Dialog [ Title: "Error"; Message: $keys; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                • Else
                • Set Variable [ $i; Value:1 ]
                • Set Variable [ $c; Value:ValueCount($keys) ]
                • Loop
                • Set Variable [ $key; Value:GetValue($keys; $i) ]
                • Set Variable [ $val; Value:MBS("Printer.PrinterInfo"; Printer Info::PrinterName; $key) ]
                • New Record/Request
                • Set Field [ Printer Info::Key; $key ]
                • Set Field [ Printer Info::Value; $val ]
                • Commit Records/Requests
                • If [ $key = "Attributes" /* on Windows */ ]
                • New Record/Request
                • Set Field [ Printer Info::Key; "Attributes Network" ]
                • Set Field [ Printer Info::Value; MBS("Math.BitwiseAnd"; $val; 16) = 16 ]
                • Commit Records/Requests
                • New Record/Request
                • Set Field [ Printer Info::Key; "Attributes Local" ]
                • Set Field [ Printer Info::Value; MBS("Math.BitwiseAnd"; $val; 64) = 64 ]
                • Commit Records/Requests
                • New Record/Request
                • Set Field [ Printer Info::Key; "Attributes Hidden" ]
                • Set Field [ Printer Info::Value; MBS("Math.BitwiseAnd"; $val; 32) = 32 ]
                • Commit Records/Requests
                • New Record/Request
                • Set Field [ Printer Info::Key; "Attributes Default" ]
                • Set Field [ Printer Info::Value; MBS("Math.BitwiseAnd"; $val; 4) = 4 ]
                • Commit Records/Requests
                • End If
                • # next
                • Set Variable [ $i; Value:$i + 1 ]
                • Exit Loop If [ $i > $c ]
                • 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: [QueryPrinterInfo]Next Script: [Clear]
                        Script NameQueryPrinterName
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                        Scripts that use this script
                          Script Definition
                          Script Steps
                          • Go to Field [ Printer Info::PrinterName ] [ Select/perform ]
                          • Set Field [ Printer Info::PrinterName; MBS("Printer.PrinterName"; 0) ]
                          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: [QueryPrinterName]
                                  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
                                      • Delete All Records [ No dialog ]
                                      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: Printer Info

                                                    Used functions: