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

MBS FileMaker Plugin Example Databases

Formula Formatting

All examples are included with download of MBS FileMaker Plugin.

Formula Formatting.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
Formula Formatting
7 fields defined, 7 records
Formula Formatting

Fields

Table Name: Formula Formatting - 7 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, 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
          Date and time each record was created
                  CreatedByNormal, 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
                  Account name of the user who created each record
                          ModificationTimestampNormal, 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
                          Date and time each record was last modified
                                  ModifiedByNormal, 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
                                  Account name of the user who last modified each record
                                          InputNormal, TextAuto-Enter: Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              OutputNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German

                                                  Layout Objects: Formula Formatting

                                                  Regular Fields

                                                  Field Name: Formula Formatting::Input
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 114 pt
                                                  • Left: 93 pt
                                                  • Bottom: 563 pt
                                                  • Right: 496 pt
                                                  • Anchoring: Left, Top and Bottom
                                                  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: Formula Formatting::Output
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 114 pt
                                                  • Left: 613 pt
                                                  • Bottom: 563 pt
                                                  • Right: 1016 pt
                                                  • Anchoring: Left and Right, Top and Bottom
                                                  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: Format
                                                  • Top: 155 pt
                                                  • Left: 506 pt
                                                  • Bottom: 188 pt
                                                  • Right: 606 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Format” ]

                                                  Scripts:


                                                  Script Hierarchy

                                                  Format
                                                  Clear

                                                  Next Script: [Clear]
                                                  Script NameFormat
                                                  Run script with full access privilegesOff
                                                  Siri Shortcut VisibleOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • #have the plugin format the calculation
                                                    • Set Variable [ $r; Value:MBS("SyntaxColoring.FormatCalculation"; Formula Formatting::Input; MBS("RemoteControl.IsAltKeyDown")) ]
                                                    • If [ MBS("IsError") ]
                                                    • Show Custom Dialog [ Title: "Failed to format"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                    • Else
                                                    • #add colors on macOS
                                                    • Set Variable [ $f; Value:MBS("SyntaxColoring.Format"; $r) ]
                                                    • If [ MBS("IsError") ]
                                                    • Set Field [ Formula Formatting::Output; $r ]
                                                    • Else
                                                    • Set Field [ Formula Formatting::Output; TextSize ( $f ; 16 ) ]
                                                    • End If
                                                    • 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: [Format]
                                                            Script NameClear
                                                            Run script with full access privilegesOff
                                                            Siri Shortcut VisibleOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                              Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • Replace Field Contents [ Formula Formatting::Output; Replace with calculation: "" ] [ No dialog ]
                                                                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: Formula Formatting

                                                                        Used functions: