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

MBS FileMaker Plugin Example Databases

Page Setup Dialog

All examples are included with download of MBS FileMaker Plugin.

Page Setup Dialog.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
Value Lists0
Custom Functions0
Custom Menus24
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
PageSetup
6 fields defined, 1 record
PageSetup

Fields

Table Name: PageSetup - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimärschlüsselNormal, TextAuto-Enter:
  • Context table: PageSetup
    Calculation: Get( UUID )
Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Eindeutige ID für jeden Datensatz in dieser Tabelle
          ErstellungszeitstempelNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Datum und Uhrzeit der Erstellung der einzelnen Datensätze
                  ErstelltVonNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Kontoname des Benutzers, der die einzelnen Datensätze erstellt hat
                          ÄnderungszeitstempelNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Datum und Uhrzeit der letzten Änderung der einzelnen Datensätze
                                  GeändertVonNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Kontoname des Benutzers, der die einzelnen Datensätze zuletzt geändert hat
                                          TestNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German

                                                Layout Objects: PageSetup

                                                Regular Fields

                                                Field Name: PageSetup::Test
                                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                • Top: 52 pt
                                                • Left: 138 pt
                                                • Bottom: 73 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: Save as PDF in three formats
                                                • Top: 67 pt
                                                • Left: 455 pt
                                                • Bottom: 110 pt
                                                • Right: 676 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Print” ]

                                                Scripts:


                                                Script Hierarchy

                                                Print
                                                Print custom paper size

                                                Next Script: [Print custom paper size]
                                                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
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.Install" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.Enable" ) ]
                                                  • #A4 Portrait
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperName"; "iso-a4" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperOrientation"; "portrait" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetNoDialog"; 1 ) ]
                                                  • Set Variable [ $r; Value:MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; 57606 )") // run Page Setup Dialog in 0.1 seconds ]
                                                  • Pause/Resume Script [ Duration (seconds): 2 ]
                                                  • Save Records as PDF [ File Name: “file:test A4.pdf”; Create directories:No; Records being browsed ] [ Document - Compatibility: Acrobat 5 and later ] [ Pages - 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ No dialog ]
                                                  • #A5 Portrait
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperName"; "iso-a5" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperOrientation"; "portrait" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetNoDialog"; 1 ) ]
                                                  • Set Variable [ $r; Value:MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; 57606 )") // run Page Setup Dialog in 0.1 seconds ]
                                                  • Pause/Resume Script [ Duration (seconds): 2 ]
                                                  • Save Records as PDF [ File Name: “file:test A5.pdf”; Create directories:No; Records being browsed ] [ Document - Compatibility: Acrobat 5 and later ] [ Pages - 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ No dialog ]
                                                  • #A4 Landscape
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperName"; "iso-a4" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperOrientation"; "landscape" ) ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetNoDialog"; 1 ) ]
                                                  • Set Variable [ $r; Value:MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; 57606 )") // run Page Setup Dialog in 0.1 seconds ]
                                                  • Pause/Resume Script [ Duration (seconds): 2 ]
                                                  • Save Records as PDF [ File Name: “file:test A4 wide.pdf”; Create directories:No; Records being browsed ] [ Document - Compatibility: Acrobat 5 and later ] [ Pages - 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ No dialog ]
                                                  • Set Variable [ $r; Value:MBS( "PageSetupDialog.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

                                                                Previous Script: [Print]
                                                                Script NamePrint custom paper size
                                                                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( "PageSetupDialog.Enable" ) ]
                                                                    • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperWidth"; 300 ) ]
                                                                    • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetPaperHeight"; 300 ) ]
                                                                    • Set Variable [ $r; Value:MBS( "PageSetupDialog.SetNoDialog"; 1 ) ]
                                                                    • #trigger the page setup dialog
                                                                    • Set Variable [ $r; Value:MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; 57606 )") // run Page Setup Dialog in 0.1 seconds ]
                                                                    • #wait for FileMaker to use page setup dialog
                                                                    • Pause/Resume Script [ Duration (seconds): 1 ]
                                                                    • #now save records with that page format
                                                                    • Save Records as PDF [ File Name: “file:test custom.pdf”; Create directories:No; Records being browsed ] [ Document - Compatibility: Acrobat 5 and later ] [ Pages - 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ No dialog ]
                                                                    • #and disable, so user can get the dialog again
                                                                    • Set Variable [ $r; Value:MBS( "PageSetupDialog.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: Page Setup Dialog

                                                                                  Used functions: