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

MBS FileMaker Plugin Example Databases

Print Data

All examples are included with download of MBS FileMaker Plugin.

Print Data.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
Print Data
4 fields defined, 3 records
Print Data

Fields

Table Name: Print Data - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrinterNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      DataNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          TitleNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              Printer ListNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German

                  Layout Objects: Print Data

                  Regular Fields

                  Field Name: Print Data::Printer List
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 292 pt
                  • Left: 138 pt
                  • Bottom: 361 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: Default for Data Type
                  • Go to next field using: Tab key
                  Yes

                  Field Name: Print Data::Printer
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 55 pt
                  • Left: 138 pt
                  • Bottom: 74 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: Default for Data Type
                  • Go to next field using: Tab key
                  Yes

                  Field Name: Print Data::Data
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 78 pt
                  • Left: 138 pt
                  • Bottom: 198 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: Default for Data Type
                  • Go to next field using: Tab key
                  Yes

                  Field Name: Print Data::Title
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 204 pt
                  • Left: 138 pt
                  • Bottom: 223 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: Default for Data Type
                  • Go to next field using: Tab key
                  Yes

                  Buttons

                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Send Data to Printer
                  • Top: 56 pt
                  • Left: 402 pt
                  • Bottom: 92 pt
                  • Right: 589 pt
                  • Anchoring: Left, Top
                  Perform Script [ “Print” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: List Printers
                  • Top: 292 pt
                  • Left: 402 pt
                  • Bottom: 328 pt
                  • Right: 589 pt
                  • Anchoring: Left, Top
                  Perform Script [ “ListPrinters” ]

                  Scripts:


                  Script Hierarchy

                  Print
                  ListPrinters
                  Clear

                  Next Script: [ListPrinters]
                  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
                    • Commit Records/Requests [ No dialog ]
                    • Show Custom Dialog [ Title: "Job Printing"; Message: "Job ID: " & MBS( "CUPS.PrintData"; Print Data::Printer; Print Data::Data; Print Data::Title); Default Button: “OK”, Commit: “Yes” ]
                    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: [Clear]
                            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 Variable [ $list; Value:"" ]
                              • If [ GetAsNumber ( $count ) > 0 ]
                              • Set Variable [ $index; Value:0 ]
                              • Loop
                              • New Record/Request
                              • Set Variable [ $name; Value:MBS( "CUPS.GetPrinterName"; $index ) ]
                              • Set Variable [ $list; Value:$list & $name & ¶ ]
                              • Set Variable [ $index; Value:$index + 1 ]
                              • Exit Loop If [ $index = $count ]
                              • End Loop
                              • End If
                              • Set Field [ Print Data::Printer List; $list ]
                              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: [ListPrinters]
                                      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
                                          • Set Field [ Print Data::Printer List; "" ]
                                          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: Print Data

                                                  Used functions: