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

MBS FileMaker Plugin Example Databases

JSON Insert and Update

All examples are included with download of MBS FileMaker Plugin.

JSON Insert and Update.fmp12

Overview
Tables 2
Relationships 1
Layouts 2
Scripts 7
Value Lists 0
Custom Functions 1
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
Occurrences in Relationship Graph
Table
11 fields defined, 1 record
Table
Data
10 fields defined, 0 record
Data

Fields

Table Name: Table - 11 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
PrimaryKey Normal, Text Auto-Enter:
  • Context table: Table
    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
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
                                        JSON Insert Normal, Text Auto-Enter: Validation:
                                        • Only during data entry
                                        Storage:
                                        • Repetitions: 1
                                        • Indexing: None
                                        • Automatically create indexes as needed
                                        • Index Language: German
                                            JSON Update Normal, Text Auto-Enter: Validation:
                                            • Only during data entry
                                            Storage:
                                            • Repetitions: 1
                                            • Indexing: None
                                            • Automatically create indexes as needed
                                            • Index Language: German
                                                JSON InsertOrUpdate Normal, Text Auto-Enter: Validation:
                                                • Only during data entry
                                                Storage:
                                                • Repetitions: 1
                                                • Indexing: None
                                                • Automatically create indexes as needed
                                                • Index Language: German
                                                    JSON Delete Normal, Text Auto-Enter: Validation:
                                                    • Only during data entry
                                                    Storage:
                                                    • Repetitions: 1
                                                    • Indexing: None
                                                    • Automatically create indexes as needed
                                                    • Index Language: German
                                                        JSON Update PrimaryKeys Normal, Text Auto-Enter: Validation:
                                                        • Only during data entry
                                                        Storage:
                                                        • Repetitions: 1
                                                        • Indexing: None
                                                        • Automatically create indexes as needed
                                                        • Index Language: German
                                                            JSON InsertORUpdate PrimaryKeys Normal, Text Auto-Enter: Validation:
                                                            • Only during data entry
                                                            Storage:
                                                            • Repetitions: 1
                                                            • Indexing: None
                                                            • Automatically create indexes as needed
                                                            • Index Language: German

                                                                Table Name: Data - 10 Fields
                                                                Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
                                                                PrimaryKey Normal, Text Auto-Enter:
                                                                • Context table: Data
                                                                  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
                                                                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
                                                                                                      FirstName Normal, Text Auto-Enter:
                                                                                                      • Allow editing
                                                                                                      Validation:
                                                                                                      • Only during data entry
                                                                                                      Storage:
                                                                                                      • Repetitions: 1
                                                                                                      • Indexing: Minimal
                                                                                                      • Automatically create indexes as needed
                                                                                                      • Index Language: German
                                                                                                            LastName Normal, Text Auto-Enter:
                                                                                                            • Allow editing
                                                                                                            Validation:
                                                                                                            • Only during data entry
                                                                                                            Storage:
                                                                                                            • Repetitions: 1
                                                                                                            • Indexing: Minimal
                                                                                                            • Automatically create indexes as needed
                                                                                                            • Index Language: German
                                                                                                                  Birthday Normal, Date Auto-Enter:
                                                                                                                  • Allow editing
                                                                                                                  Validation:
                                                                                                                  • Only during data entry
                                                                                                                  Storage:
                                                                                                                  • Repetitions: 1
                                                                                                                  • Indexing: None
                                                                                                                  • Automatically create indexes as needed
                                                                                                                  • Index Language: German
                                                                                                                        Donation Normal, Number Auto-Enter:
                                                                                                                        • Allow editing
                                                                                                                        Validation:
                                                                                                                        • Only during data entry
                                                                                                                        Storage:
                                                                                                                        • Repetitions: 1
                                                                                                                        • Indexing: None
                                                                                                                        • Automatically create indexes as needed
                                                                                                                        • Index Language: German
                                                                                                                              Status 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: Table

                                                                                                                                    Regular Fields

                                                                                                                                    Field Name: Table::JSON Insert
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 61 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 216 pt
                                                                                                                                    • Right: 525 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: Table::JSON Update
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 220 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 375 pt
                                                                                                                                    • Right: 525 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: Table::JSON InsertOrUpdate
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 461 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 616 pt
                                                                                                                                    • Right: 525 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: Table::JSON Delete
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 702 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 857 pt
                                                                                                                                    • Right: 525 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: Data::FirstName
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 75 pt
                                                                                                                                    • Left: 544 pt
                                                                                                                                    • Bottom: 106 pt
                                                                                                                                    • Right: 633 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: Data::LastName
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 75 pt
                                                                                                                                    • Left: 637 pt
                                                                                                                                    • Bottom: 106 pt
                                                                                                                                    • Right: 726 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: Data::Birthday
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 75 pt
                                                                                                                                    • Left: 730 pt
                                                                                                                                    • Bottom: 106 pt
                                                                                                                                    • Right: 818 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: Data::Donation
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 75 pt
                                                                                                                                    • Left: 822 pt
                                                                                                                                    • Bottom: 106 pt
                                                                                                                                    • Right: 911 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: Data::Status
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 75 pt
                                                                                                                                    • Left: 915 pt
                                                                                                                                    • Bottom: 106 pt
                                                                                                                                    • Right: 1004 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: Table::JSON Update PrimaryKeys
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 379 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 456 pt
                                                                                                                                    • Right: 525 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: Table::JSON InsertORUpdate PrimaryKeys
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 619 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 696 pt
                                                                                                                                    • Right: 525 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 Properties Coordinates Script/Script Step
                                                                                                                                      Type:
                                                                                                                                    • Text: Insert
                                                                                                                                    • Top: 106 pt
                                                                                                                                    • Left: 17 pt
                                                                                                                                    • Bottom: 137 pt
                                                                                                                                    • Right: 127 pt
                                                                                                                                    • Anchoring: Left, Top
                                                                                                                                    Perform Script [ “JSON Insert” ]

                                                                                                                                    Scripts:


                                                                                                                                    Button Properties Coordinates Script/Script Step
                                                                                                                                      Type:
                                                                                                                                    • Text: Update
                                                                                                                                      Additional Properties:
                                                                                                                                    • Change to hand cursor over button
                                                                                                                                    • Top: 253 pt
                                                                                                                                    • Left: 14 pt
                                                                                                                                    • Bottom: 284 pt
                                                                                                                                    • Right: 124 pt
                                                                                                                                    • Anchoring: Left, Top
                                                                                                                                    Perform Script [ “JSON Update” ]

                                                                                                                                    Scripts:


                                                                                                                                    Button Properties Coordinates Script/Script Step
                                                                                                                                      Type:
                                                                                                                                    • Text: Insert or Update
                                                                                                                                      Additional Properties:
                                                                                                                                    • Change to hand cursor over button
                                                                                                                                    • Top: 512 pt
                                                                                                                                    • Left: 14 pt
                                                                                                                                    • Bottom: 558 pt
                                                                                                                                    • Right: 124 pt
                                                                                                                                    • Anchoring: Left, Top
                                                                                                                                    Perform Script [ “JSON Insert or Update” ]

                                                                                                                                    Scripts:


                                                                                                                                    Button Properties Coordinates Script/Script Step
                                                                                                                                      Type:
                                                                                                                                    • Text: Delete
                                                                                                                                      Additional Properties:
                                                                                                                                    • Change to hand cursor over button
                                                                                                                                    • Top: 735 pt
                                                                                                                                    • Left: 14 pt
                                                                                                                                    • Bottom: 766 pt
                                                                                                                                    • Right: 124 pt
                                                                                                                                    • Anchoring: Left, Top
                                                                                                                                    Perform Script [ “JSON Delete” ]

                                                                                                                                    Scripts:


                                                                                                                                    Portals

                                                                                                                                    Portal Properties Coordinates Fields Options
                                                                                                                                    • Top: 70 pt
                                                                                                                                    • Left: 539 pt
                                                                                                                                    • Bottom: 696 pt
                                                                                                                                    • Right: 1009 pt
                                                                                                                                    • Anchoring: Left and Right, Top and Bottom
                                                                                                                                    Field Objects
                                                                                                                                    • Sort records: Off
                                                                                                                                    • Filter calculation: None
                                                                                                                                    • Initial Row: 1
                                                                                                                                    • Number of Rows: 16

                                                                                                                                    Layout Objects: Data

                                                                                                                                    Regular Fields

                                                                                                                                    Field Name: Data::FirstName
                                                                                                                                    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: Data::LastName
                                                                                                                                    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: Data::Birthday
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 184 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 215 pt
                                                                                                                                    • Right: 259 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: Data::Donation
                                                                                                                                    Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                                                                    • Top: 219 pt
                                                                                                                                    • Left: 138 pt
                                                                                                                                    • Bottom: 250 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: Default for Data Type
                                                                                                                                    • Go to next field using: Tab key
                                                                                                                                    Yes

                                                                                                                                    Field Name: Data::Status
                                                                                                                                    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

                                                                                                                                    Script Hierarchy

                                                                                                                                    JSON Insert
                                                                                                                                    JSON Update
                                                                                                                                    JSON Updates
                                                                                                                                    JSON Insert or Update
                                                                                                                                    JSON Delete
                                                                                                                                    JSON Deletes
                                                                                                                                    CSV Insert

                                                                                                                                    Next Script: [JSON Update]
                                                                                                                                    Script Name JSON Insert
                                                                                                                                    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
                                                                                                                                      • Set Variable [ $r; Value:MBS("JSON.InsertRecord"; ""; "Data"; Table::JSON Insert) ]
                                                                                                                                      • If [ MBS("IsError") ]
                                                                                                                                      • Show Custom Dialog [ Title: "Failed to insert."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                      • 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: [JSON Insert] Next Script: [JSON Updates]
                                                                                                                                              Script Name JSON Update
                                                                                                                                              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
                                                                                                                                                • Set Variable [ $r; Value:MBS("JSON.UpdateRecord"; ""; "Data"; Table::JSON Update PrimaryKeys; Table::JSON Update) ]
                                                                                                                                                • If [ MBS("IsError") ]
                                                                                                                                                • Show Custom Dialog [ Title: "Failed to update."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                • 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: [JSON Update] Next Script: [JSON Insert or Update]
                                                                                                                                                        Script Name JSON Updates
                                                                                                                                                        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
                                                                                                                                                            • Set Variable [ $r; Value:MBS("JSON.UpdateRecords"; ""; "Data"; Table::JSON Update PrimaryKeys; Table::JSON Update) ]
                                                                                                                                                            • If [ MBS("IsError") ]
                                                                                                                                                            • Show Custom Dialog [ Title: "Failed to update."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                            • 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: [JSON Updates] Next Script: [JSON Delete]
                                                                                                                                                                    Script Name JSON Insert or Update
                                                                                                                                                                    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
                                                                                                                                                                      • Set Variable [ $r; Value:MBS("JSON.InsertOrUpdateRecord"; ""; "Data"; Table::JSON InsertORUpdate PrimaryKeys; Table::JSON InsertOrUpdate) ]
                                                                                                                                                                      • If [ MBS("IsError") ]
                                                                                                                                                                      • Show Custom Dialog [ Title: "Failed to insert."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                      • 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: [JSON Insert or Update] Next Script: [JSON Deletes]
                                                                                                                                                                              Script Name JSON Delete
                                                                                                                                                                              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
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("JSON.DeleteRecord"; ""; "Data"; Table::JSON Delete) ]
                                                                                                                                                                                • If [ MBS("IsError") ]
                                                                                                                                                                                • Show Custom Dialog [ Title: "Failed to insert."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                                • 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: [JSON Delete] Next Script: [CSV Insert]
                                                                                                                                                                                        Script Name JSON Deletes
                                                                                                                                                                                        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
                                                                                                                                                                                            • Set Variable [ $r; Value:MBS("JSON.DeleteRecords"; ""; "Data"; Table::JSON Delete) ]
                                                                                                                                                                                            • If [ MBS("IsError") ]
                                                                                                                                                                                            • Show Custom Dialog [ Title: "Failed to insert."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                                            • 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: [JSON Deletes]
                                                                                                                                                                                                    Script Name CSV Insert
                                                                                                                                                                                                    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
                                                                                                                                                                                                        • Set Variable [ $CSV; Value:"Kate;Berry;20.07.1956;20;Done" & ¶ & "Clarie;Jones;02.03.1963;50;Coming" ]
                                                                                                                                                                                                        • Set Variable [ $FieldNames; Value:"FirstName¶LastName¶Birthday¶Donation¶Status" ]
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS( "FM.InsertRecordCSV"; ""; "Data"; $FieldNames; $CSV ) ]
                                                                                                                                                                                                        • If [ MBS("IsError") ]
                                                                                                                                                                                                        • Show Custom Dialog [ Title: "Failed to insert."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                                                        • 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

                                                                                                                                                                                                                      Custom Functions

                                                                                                                                                                                                                      Function Name Parameters Availability Definition In Field Definitions In Scripts
                                                                                                                                                                                                                      cfFormatJSON InputJSON All accounts Let ( [ jsonFormatted = MBS("JSON.Format"; InputJSON); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; InputJSON; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result )

                                                                                                                                                                                                                      Custom Menu Sets

                                                                                                                                                                                                                      Menu Sets Menus In Scripts In Layouts Comments
                                                                                                                                                                                                                      [Standard FileMaker Menus]
                                                                                                                                                                                                                      • All Standard Menus

                                                                                                                                                                                                                      Download example: JSON Insert and Update

                                                                                                                                                                                                                      Used functions: