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

MBS FileMaker Plugin Example Databases

JSON Query

All examples are included with download of MBS FileMaker Plugin.

JSON Query.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists0
Custom Functions0
Custom Menus24
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
JSON Query
11 fields defined, 43 records
JSON Query

Fields

Table Name: JSON Query - 11 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter:
  • Context table: JSON Query
    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
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          JSONNormal, TextAuto-Enter:
                                          • Allow editing
                                          • Context table: JSON Query
                                            Calculation: Let ( [ jsonFormatted = MBS("JSON.Format"; Self); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; Self; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result )
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              QueryNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  ReplaceNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  • Context table: JSON Query
                                                    Calculation: Let ( [ jsonFormatted = MBS("JSON.Format"; Self); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; Self; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result )
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      SearchNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          ResultNormal, TextAuto-Enter:
                                                          • Allow editing
                                                          • Context table: JSON Query
                                                            Calculation: Let ( [ jsonFormatted = MBS("JSON.Format"; Self); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; Self; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result )
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              CommentNormal, TextAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German

                                                                    Layout Objects: JSON Query

                                                                    Regular Fields

                                                                    Field Name: JSON Query::JSON
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 114 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 436 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, 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: JSON Query::Query
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 440 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 471 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, 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: JSON Query::Replace
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 475 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 506 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, 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: JSON Query::Search
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 510 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 541 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, 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: JSON Query::Result
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 545 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 757 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, Top and Bottom
                                                                    Field Format:
                                                                    • Edit Box
                                                                    Field Behavior:
                                                                    • Allow field to be entered: In Find mode, In Browse mode
                                                                    • Touch keyboard type: Default for Data Type
                                                                    • Go to next field using: Tab key
                                                                    Yes

                                                                    Field Name: JSON Query::Comment
                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                    • Top: 761 pt
                                                                    • Left: 138 pt
                                                                    • Bottom: 792 pt
                                                                    • Right: 760 pt
                                                                    • Anchoring: Left and Right, Bottom
                                                                    Field Format:
                                                                    • Edit Box
                                                                    Field Behavior:
                                                                    • Allow field to be entered: In Find mode, In Browse mode
                                                                    • Touch keyboard type: Default for Data Type
                                                                    • Go to next field using: Tab key
                                                                    Yes

                                                                    Buttons

                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                      Type:
                                                                    • Text: Query
                                                                    • Top: 440 pt
                                                                    • Left: 788 pt
                                                                    • Bottom: 471 pt
                                                                    • Right: 894 pt
                                                                    • Anchoring: Right, Top
                                                                    Perform Script [ “Query” ]

                                                                    Scripts:


                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                      Type:
                                                                    • Text: Replace
                                                                    • Top: 475 pt
                                                                    • Left: 788 pt
                                                                    • Bottom: 506 pt
                                                                    • Right: 894 pt
                                                                    • Anchoring: Right, Top
                                                                    Perform Script [ “Replace” ]

                                                                    Scripts:


                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                      Type:
                                                                    • Text: Search
                                                                    • Top: 510 pt
                                                                    • Left: 788 pt
                                                                    • Bottom: 541 pt
                                                                    • Right: 894 pt
                                                                    • Anchoring: Right, Top
                                                                    Perform Script [ “Search” ]

                                                                    Scripts:


                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                      Type:
                                                                    • Text: JSONPath
                                                                    • Top: 9 pt
                                                                    • Left: 788 pt
                                                                    • Bottom: 40 pt
                                                                    • Right: 894 pt
                                                                    • Anchoring: Right, Top
                                                                    Open URL [ "https://goessner.net/articles/JsonPath/" ] [ No dialog ]

                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                      Type:
                                                                    • Text: JMESPath
                                                                    • Top: 51 pt
                                                                    • Left: 788 pt
                                                                    • Bottom: 82 pt
                                                                    • Right: 894 pt
                                                                    • Anchoring: Right, Top
                                                                    Open URL [ "https://jmespath.org" ] [ No dialog ]

                                                                    Script Hierarchy

                                                                    Query
                                                                    Replace
                                                                    Search
                                                                    Clear

                                                                    Next Script: [Replace]
                                                                    Script NameQuery
                                                                    Run script with full access privilegesOff
                                                                    Siri Shortcut VisibleOff
                                                                    Include In MenuYes
                                                                    Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      • Set Field [ JSON Query::Result; MBS("JSON.Query"; JSON Query::JSON; JSON Query::Query) ]
                                                                      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: [Query]Next Script: [Search]
                                                                              Script NameReplace
                                                                              Run script with full access privilegesOff
                                                                              Siri Shortcut VisibleOff
                                                                              Include In MenuYes
                                                                              Layouts that use this script
                                                                              Scripts that use this script
                                                                                Script Definition
                                                                                Script Steps
                                                                                • Set Field [ JSON Query::Result; MBS("JSON.Replace"; JSON Query::JSON; JSON Query::Query; JSON Query::Replace) ]
                                                                                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: [Replace]Next Script: [Clear]
                                                                                        Script NameSearch
                                                                                        Run script with full access privilegesOff
                                                                                        Siri Shortcut VisibleOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                        Scripts that use this script
                                                                                          Script Definition
                                                                                          Script Steps
                                                                                          • Set Field [ JSON Query::Result; MBS("JSON.Search"; JSON Query::JSON; JSON Query::Search) ]
                                                                                          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: [Search]
                                                                                                  Script NameClear
                                                                                                  Run script with full access privilegesOff
                                                                                                  Siri Shortcut VisibleOff
                                                                                                  Include In MenuYes
                                                                                                  Layouts that use this script
                                                                                                    Scripts that use this script
                                                                                                      Script Definition
                                                                                                      Script Steps
                                                                                                      • Replace Field Contents [ JSON Query::Result; Replace with calculation: "" ] [ No dialog ]
                                                                                                      Fields used in this script
                                                                                                      Scripts used in this script
                                                                                                        Layouts used in this script
                                                                                                          Tables used in this script
                                                                                                          Table occurrences used by this script
                                                                                                          Custom Functions used by this script
                                                                                                            Custom menu set used by this script

                                                                                                              Download example: JSON Query

                                                                                                              Used functions: