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

MBS FileMaker Plugin Example Databases

PDFKit Print

All examples are included with download of MBS FileMaker Plugin.

PDFKit Print.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts6
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
PDFKit Print
8 fields defined, 1 record
PDFKit Print

Fields

Table Name: PDFKit Print - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
FilePathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      FileContainerNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          PrintSettingsNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
              ResultNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  ShowDialogNormal, NumberAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      ShowProgressNormal, NumberAuto-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:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              CopiesNormal, NumberAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German

                                  Layout Objects: PDFKit Print

                                  Regular Fields

                                  Field Name: PDFKit Print::FilePath
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 24 pt
                                  • Left: 138 pt
                                  • Bottom: 38 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: PDFKit Print::FileContainer
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 42 pt
                                  • Left: 138 pt
                                  • Bottom: 167 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: PDFKit Print::PrintSettings
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 168 pt
                                  • Left: 138 pt
                                  • Bottom: 293 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: PDFKit Print::Result
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 294 pt
                                  • Left: 138 pt
                                  • Bottom: 308 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: PDFKit Print::ShowDialog
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 312 pt
                                  • Left: 138 pt
                                  • Bottom: 326 pt
                                  • Right: 217 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: PDFKit Print::ShowProgress
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 330 pt
                                  • Left: 138 pt
                                  • Bottom: 344 pt
                                  • Right: 217 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: PDFKit Print::PrinterName
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 354 pt
                                  • Left: 138 pt
                                  • Bottom: 368 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: PDFKit Print::Copies
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 372 pt
                                  • Left: 138 pt
                                  • Bottom: 386 pt
                                  • Right: 217 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: Save Print Settings to container
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 30 pt
                                  • Left: 422 pt
                                  • Bottom: 55 pt
                                  • Right: 635 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “QuerySettings” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Restore Print Settings from container
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 60 pt
                                  • Left: 422 pt
                                  • Bottom: 85 pt
                                  • Right: 635 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “ApplySettings” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Print PDF
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 132 pt
                                  • Left: 420 pt
                                  • Bottom: 157 pt
                                  • Right: 553 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “Print” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Apply setting
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 318 pt
                                  • Left: 420 pt
                                  • Bottom: 343 pt
                                  • Right: 553 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “ApplyDialogSettings” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Reset Print Settings to system default
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 90 pt
                                  • Left: 422 pt
                                  • Bottom: 115 pt
                                  • Right: 635 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “ResetSettings” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: Trace on
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 414 pt
                                  • Left: 414 pt
                                  • Bottom: 439 pt
                                  • Right: 547 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “Trace on” ]

                                  Scripts:


                                  Script Hierarchy

                                  QuerySettings
                                  ApplySettings
                                  Print
                                  ApplyDialogSettings
                                  Trace on
                                  ResetSettings

                                  Next Script: [ApplySettings]
                                  Script NameQuerySettings
                                  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 [ $v; Value:MBS( "PDFKit.SavePrintSettings"; "print settings.plist" ) ]
                                    • If [ MBS("IsError") ]
                                    • Set Field [ PDFKit Print::Result; $v ]
                                    • Else
                                    • Set Field [ PDFKit Print::PrintSettings; $v ]
                                    • Set Field [ PDFKit Print::Result; "OK" ]
                                    • 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: [QuerySettings]Next Script: [Print]
                                            Script NameApplySettings
                                            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: [ApplySettings]Next Script: [ApplyDialogSettings]
                                                      Script NamePrint
                                                      Run script with full access privilegesOff
                                                      Include In MenuYes
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • # Open PDF
                                                        • If [ IsEmpty(PDFKit Print::FileContainer) ]
                                                        • Set Variable [ $PDF; Value:MBS( "PDFKit.OpenPath"; PDFKit Print::FilePath) ]
                                                        • Else
                                                        • Set Variable [ $PDF; Value:MBS( "PDFKit.OpenContainer"; PDFKit Print::FileContainer) ]
                                                        • End If
                                                        • If [ MBS("IsError") ]
                                                        • Set Field [ PDFKit Print::Result; $PDF ]
                                                        • Show Custom Dialog [ Title: "Failed to open file"; Message: $PDF; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                        • Exit Script [ ]
                                                        • End If
                                                        • #Print
                                                        • Set Variable [ $r; Value:MBS("PDFKit.Print"; $pdf) ]
                                                        • #Clear
                                                        • If [ MBS("IsError") ]
                                                        • Set Field [ PDFKit Print::Result; $r ]
                                                        • Show Custom Dialog [ Title: "Failed to open file"; Message: $PDF; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                        • Else
                                                        • Set Field [ PDFKit Print::Result; $r ]
                                                        • End If
                                                        • # Release PDF
                                                        • Set Variable [ $r; Value:MBS("PDFKit.Release"; $pdf) ]
                                                        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: [Print]Next Script: [Trace on]
                                                                Script NameApplyDialogSettings
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                Scripts that use this script
                                                                  Script Definition
                                                                  Script Steps
                                                                  • # Apply our settings
                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "ShowsPrintPanel"; PDFKit Print::ShowDialog ) ]
                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "ShowsProgressPanel"; PDFKit Print::ShowProgress ) ]
                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "Copies"; PDFKit Print::Copies ) ]
                                                                  • # Query default printer if none is named
                                                                  • If [ Length(PDFKit Print::PrinterName) <1 ]
                                                                  • Set Field [ PDFKit Print::PrinterName; MBS( "PDFKit.GetPrintSetting"; "DefaultPrinter" ) ]
                                                                  • End If
                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "Printer"; PDFKit Print::PrinterName) ]
                                                                  • Set Field [ PDFKit Print::Result; $r ]
                                                                  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: [ApplyDialogSettings]Next Script: [ResetSettings]
                                                                          Script NameTrace on
                                                                          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 [ $r; Value:MBS("Trace") ]
                                                                            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: [Trace on]
                                                                                          Script NameResetSettings
                                                                                          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

                                                                                                    Download example: PDFKit Print

                                                                                                    Used functions: