MBS FileMaker Plugin Example Databases

List Printers

All examples are included with download of MBS FileMaker Plugin.

List Printers.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
List Printers
3 fields defined, 0 record
List Printers

Fields

Table Name: List Printers - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
NameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      DefaultNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          NumberOfPrintersNormal, NumberAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Global
          • Repetitions: 1
          • Index Language: German

              Layout Objects: List Printers

              Regular Fields

              Field Name: List Printers::Name
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 54 pt
              • Bottom: 80 pt
              • Right: 307 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: List Printers::NumberOfPrinters
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 6 pt
              • Left: 114 pt
              • Bottom: 20 pt
              • Right: 193 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: List Printers::Default
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 315 pt
              • Bottom: 80 pt
              • Right: 412 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 Printer List
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 234 pt
              • Bottom: 31 pt
              • Right: 391 pt
              • Anchoring: Left, Top
              Perform Script [ “ListPrinters” ]

              Scripts:


              Script Hierarchy

              ListPrinters

              Script NameListPrinters
              Run script with full access privilegesOff
              Include In MenuYes
              Layouts that use this script
              Scripts that use this script
                Script Definition
                Script Steps
                • Set Variable [ $count; Value:MBS( "CUPS.getPrinterCount" ) ]
                • Set Field [ List Printers::NumberOfPrinters; $count ]
                • Delete All Records [ No dialog ]
                • If [ GetAsNumber ( $count ) > 0 ]
                • Set Variable [ $index; Value:0 ]
                • Loop
                • New Record/Request
                • Set Field [ List Printers::Name; MBS( "CUPS.GetPrinterName"; $index ) ]
                • Set Field [ List Printers::Default; MBS( "CUPS.GetPrinterDefault"; $index ) ]
                • Commit Records/Requests [ No dialog ]
                • 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

                        Download example: List Printers

                        Used functions:




                        Links
                        MBS Xojo Plugins