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

MBS FileMaker Plugin Example Databases

Printers

All examples are included with download of MBS FileMaker Plugin.

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
Printers
1 field defined, 0 record
Printers

Fields

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

      Layout Objects: Printers

      Regular Fields

      Field Name: Printers::PrinterName
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 54 pt
      • Left: 138 pt
      • Bottom: 68 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
      Yes

      Group Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Get Printers
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 12 pt
      • Left: 12 pt
      • Bottom: 37 pt
      • Right: 127 pt
      • Anchoring: Left, Top
      Perform Script [ “GetPrinters” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Get Default Printer
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 12 pt
      • Left: 150 pt
      • Bottom: 37 pt
      • Right: 265 pt
      • Anchoring: Left, Top
      Show Custom Dialog [ Title: "Printer"; Message: MBS("Printer.GetDefaultPrinter"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Set Default Printer
        Additional Properties:
      • Change to hand cursor over button
      • Rectangular
      • Top: 54 pt
      • Left: 408 pt
      • Bottom: 79 pt
      • Right: 523 pt
      • Anchoring: Left, Top
      Show Custom Dialog [ Title: "Printer"; Message: MBS("Printer.SetDefaultPrinter"; Printers::PrinterName); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

      Fields:


      Script Hierarchy

      GetPrinters

      Script NameGetPrinters
      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("Printer.PrinterCount") ]
        • If [ $count>0 ]
        • Set Variable [ $index; Value:0 ]
        • Loop
        • New Record/Request
        • Set Field [ Printers::PrinterName; MBS("Printer.PrinterName"; $index) ]
        • Commit Records/Requests [ Skip data entry validation; 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: Printers

                Used functions: