MBS FileMaker Plugin Example Databases

Printer Dialog on Mac

All examples are included with download of MBS FileMaker Plugin.

Printer Dialog on Mac.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
OnFirstWindowOpenScript: Init
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Printer Dialog on Mac
4 fields defined, 1 record
Printer Dialog on Mac

Fields

Table Name: Printer Dialog on Mac - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
FirstNameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
        SecondNameNormal, TextAuto-Enter:
        • Allow editing
        Validation:
        • Only during data entry
        Storage:
        • Repetitions: 1
        • Indexing: None
        • Automatically create indexes as needed
        • Index Language: German
              PrinterNameNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Global
              • Repetitions: 1
              • Index Language: German
                  PathNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Global
                  • Repetitions: 1
                  • Index Language: German

                      Layout Objects: Printer Dialog on Mac

                      Regular Fields

                      Field Name: Printer Dialog on Mac::FirstName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 150 pt
                      • Left: 138 pt
                      • Bottom: 164 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

                      Field Name: Printer Dialog on Mac::SecondName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 168 pt
                      • Left: 138 pt
                      • Bottom: 182 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

                      Field Name: Printer Dialog on Mac::PrinterName
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 72 pt
                      • Left: 138 pt
                      • Bottom: 86 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 Dialog on Mac::Path
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 90 pt
                      • Left: 138 pt
                      • Bottom: 104 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

                      Group Buttons

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

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Print to PDF
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 12 pt
                      • Left: 144 pt
                      • Bottom: 37 pt
                      • Right: 271 pt
                      • Anchoring: Left, Top
                      Perform Script [ “PrintPDF” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Print to this Printer
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 12 pt
                      • Left: 276 pt
                      • Bottom: 37 pt
                      • Right: 403 pt
                      • Anchoring: Left, Top
                      Perform Script [ “PrintPrinter” ]

                      Scripts:


                      Script Hierarchy

                      Init
                      PrintNormal
                      PrintPDF
                      PrintPrinter

                      Next Script: [PrintNormal]
                      Script NameInit
                      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 [ $path; Value:Get(DesktopPath) ]
                          • Set Variable [ $path; Value:MBS( "Path.FilemakerPathToNativePath"; $path ) ]
                          • Set Variable [ $path; Value:$path & "/test.pdf" ]
                          • Set Field [ Printer Dialog on Mac::Path; $path ]
                          • Set Variable [ $r; Value:MBS("PrintDialog.Install") ]
                          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: [Init]Next Script: [PrintPDF]
                                  Script NamePrintNormal
                                  Run script with full access privilegesOff
                                  Include In MenuYes
                                  Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    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: [PrintNormal]Next Script: [PrintPrinter]
                                                  Script NamePrintPDF
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    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: [PrintPDF]
                                                            Script NamePrintPrinter
                                                            Run script with full access privilegesOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • Allow User Abort [ Off ]
                                                              • If [ Length(Printer Dialog on Mac::PrinterName) = 0 ]
                                                              • Show Custom Dialog [ Message: "Please put a printer name in the field."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                              • Exit Script [ ]
                                                              • End If
                                                              • Set Variable [ $r; Value:MBS("PrintDialog.Enable") ]
                                                              • Set Variable [ $r; Value:MBS("PrintDialog.SetPrinterName"; Printer Dialog on Mac::PrinterName) ]
                                                              • Set Variable [ $r; Value:MBS("PrintDialog.SetNoDialog"; 0) ]
                                                              • Set Variable [ $r; Value:MBS("PrintDialog.SetPrintToPDF"; 0) ]
                                                              • Print [ ]
                                                              • Set Variable [ $r; Value:MBS("PrintDialog.Disable") ]
                                                              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 Dialog on Mac

                                                                      Used functions:




                                                                      Links
                                                                      MBS Xojo Plugins