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

MBS FileMaker Plugin Example Databases

SchemaChanges

All examples are included with download of MBS FileMaker Plugin.

SchemaChanges.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 5
Value Lists 0
Custom Functions 0
Custom Menus 24
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Apex Blue
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields On
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Comments
Occurrences in Relationship Graph
SchemaChanges
13 fields defined, 0 record
SchemaChanges

Fields

Table Name: SchemaChanges - 13 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
PrimaryKey Normal, Text Auto-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
          CreationTimestamp Normal, Timestamp Auto-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
                  CreatedBy Normal, Text Auto-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
                          ModificationTimestamp Normal, Timestamp Auto-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
                                  ModifiedBy Normal, Text Auto-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
                                          account Normal, Text Auto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                                catalog Normal, Text Auto-Enter:
                                                • Allow editing
                                                Validation:
                                                • Only during data entry
                                                Storage:
                                                • Repetitions: 1
                                                • Indexing: None
                                                • Automatically create indexes as needed
                                                • Index Language: German
                                                      file Normal, Text Auto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                            id Normal, Text Auto-Enter:
                                                            • Allow editing
                                                            Validation:
                                                            • Only during data entry
                                                            Storage:
                                                            • Repetitions: 1
                                                            • Indexing: None
                                                            • Automatically create indexes as needed
                                                            • Index Language: German
                                                                  user Normal, Text Auto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                        basetableid Normal, Text Auto-Enter:
                                                                        • Allow editing
                                                                        Validation:
                                                                        • Only during data entry
                                                                        Storage:
                                                                        • Repetitions: 1
                                                                        • Indexing: None
                                                                        • Automatically create indexes as needed
                                                                        • Index Language: German
                                                                              counter Normal, Text Auto-Enter:
                                                                              • Allow editing
                                                                              Validation:
                                                                              • Only during data entry
                                                                              Storage:
                                                                              • Repetitions: 1
                                                                              • Indexing: None
                                                                              • Automatically create indexes as needed
                                                                              • Index Language: German
                                                                                    time Normal, Text Auto-Enter:
                                                                                    • Allow editing
                                                                                    Validation:
                                                                                    • Only during data entry
                                                                                    Storage:
                                                                                    • Repetitions: 1
                                                                                    • Indexing: None
                                                                                    • Automatically create indexes as needed
                                                                                    • Index Language: German

                                                                                          Layout Objects: SchemaChanges

                                                                                          Regular Fields

                                                                                          Field Name: SchemaChanges::account
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 114 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 145 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: SchemaChanges::catalog
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 149 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 180 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: SchemaChanges::file
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 184 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 215 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: SchemaChanges::id
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 219 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 250 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: SchemaChanges::user
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 254 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 285 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: SchemaChanges::basetableid
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 289 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 320 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: SchemaChanges::counter
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 324 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 355 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: SchemaChanges::time
                                                                                          Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                          • Top: 359 pt
                                                                                          • Left: 138 pt
                                                                                          • Bottom: 390 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

                                                                                          Script Hierarchy

                                                                                          Enable
                                                                                          Disable
                                                                                          Check for Changes
                                                                                          Check for Changes now on server
                                                                                          Clear Log

                                                                                          Next Script: [Disable]
                                                                                          Script Name Enable
                                                                                          Run script with full access privileges Off
                                                                                          Siri Shortcut Visible Off
                                                                                          Include In Menu Yes
                                                                                          Layouts that use this script
                                                                                            Scripts that use this script
                                                                                            Script Definition
                                                                                            Script Steps
                                                                                            • If [ MBS("IsServer") ]
                                                                                            • Set Variable [ $r; Value:MBS( "SchemaChange.Enable" ) ]
                                                                                            • Exit Script [ Result: $r ]
                                                                                            • Else [ ]
                                                                                            • Perform Script on Server [ “Enable” ] [ Wait for completion ]
                                                                                            • Set Variable [ $e; Value:Get(LastError) ]
                                                                                            • If [ $e ]
                                                                                            • Show Custom Dialog [ Title: "Perform Script on Server failed"; Message: "Error " & $e; Default Button: “OK”, Commit: “Yes” ]
                                                                                            • Else [ ]
                                                                                            • Show Custom Dialog [ Title: "SchemaChange enabled"; Message: Get(ScriptResult); Default Button: “OK”, Commit: “Yes” ]
                                                                                            • 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: [Enable] Next Script: [Check for Changes]
                                                                                                        Script Name Disable
                                                                                                        Run script with full access privileges Off
                                                                                                        Siri Shortcut Visible Off
                                                                                                        Include In Menu Yes
                                                                                                        Layouts that use this script
                                                                                                          Scripts that use this script
                                                                                                          Script Definition
                                                                                                          Script Steps
                                                                                                          • If [ MBS("IsServer") ]
                                                                                                          • Set Variable [ $r; Value:MBS( "SchemaChange.Disable" ) ]
                                                                                                          • Exit Script [ Result: $r ]
                                                                                                          • Else [ ]
                                                                                                          • Perform Script on Server [ “Disable” ] [ Wait for completion ]
                                                                                                          • Set Variable [ $e; Value:Get(LastError) ]
                                                                                                          • If [ $e ]
                                                                                                          • Show Custom Dialog [ Title: "Perform Script on Server failed"; Message: "Error " & $e; Default Button: “OK”, Commit: “Yes” ]
                                                                                                          • Else [ ]
                                                                                                          • Show Custom Dialog [ Title: "SchemaChange enabled"; Message: Get(ScriptResult); Default Button: “OK”, Commit: “Yes” ]
                                                                                                          • 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: [Disable] Next Script: [Check for Changes now on server]
                                                                                                                      Script Name Check for Changes
                                                                                                                      Run script with full access privileges Off
                                                                                                                      Siri Shortcut Visible Off
                                                                                                                      Include In Menu No
                                                                                                                      Layouts that use this script
                                                                                                                        Scripts that use this script
                                                                                                                        Script Definition
                                                                                                                        Script Steps
                                                                                                                        • #Make this a scheduled script to run every minute
                                                                                                                        • # check for pending changes
                                                                                                                        • Set Variable [ $changes; Value:MBS("SchemaChange.Changes") ]
                                                                                                                        • # if we have changes, log them to a table
                                                                                                                        • If [ Length ( $changes ) > 0 ]
                                                                                                                        • Set Variable [ $r; Value:MBS("JSON.InsertRecords"; Get(FileName); "SchemaChanges"; $changes) ]
                                                                                                                        • # table must have the following fields: account, catalog, file, id, user, basetableid, counter and time
                                                                                                                        • 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: [Check for Changes] Next Script: [Clear Log]
                                                                                                                                      Script Name Check for Changes now on server
                                                                                                                                      Run script with full access privileges Off
                                                                                                                                      Siri Shortcut Visible Off
                                                                                                                                      Include In Menu Yes
                                                                                                                                      Layouts that use this script
                                                                                                                                        Scripts that use this script
                                                                                                                                          Script Definition
                                                                                                                                          Script Steps
                                                                                                                                          • Perform Script on Server [ “Check for Changes” ] [ Wait for completion ]
                                                                                                                                          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: [Check for Changes now on server]
                                                                                                                                                      Script Name Clear Log
                                                                                                                                                      Run script with full access privileges Off
                                                                                                                                                      Siri Shortcut Visible Off
                                                                                                                                                      Include In Menu Yes
                                                                                                                                                      Layouts that use this script
                                                                                                                                                        Scripts that use this script
                                                                                                                                                          Script Definition
                                                                                                                                                          Script Steps
                                                                                                                                                          • Truncate Table [ No dialog; Table: “SchemaChanges” ]
                                                                                                                                                          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: SchemaChanges

                                                                                                                                                                        Used functions: