MBS FileMaker Plugin Example Databases

XML Test

All examples are included with download of MBS FileMaker Plugin.

XML Test.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts8
Value Lists0
Custom Functions0
Custom Menus0
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
test
2 fields defined, 1 record
test

Fields

Table Name: test - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
inputNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      outputNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: test

          Regular Fields

          Field Name: test::input
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 84 pt
          • Left: 143 pt
          • Bottom: 524 pt
          • Right: 476 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: test::output
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 85 pt
          • Left: 541 pt
          • Bottom: 524 pt
          • Right: 864 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

          Get Node Names
          Get Node Names Recursive
          Format
          Canonical Formatted
          Extract a subtree
          Set Variables (run in Debugger please)
          Extract a value
          Extract multiple values

          Next Script: [Get Node Names Recursive]
          Script NameGet Node Names
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
            Scripts that use this script
              Script Definition
              Script Steps
              • Set Field [ test::output; MBS( "XML.NodeNames"; test::input; 0 ) ]
              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: [Get Node Names]Next Script: [Format]
                      Script NameGet Node Names Recursive
                      Run script with full access privilegesOff
                      Include In MenuYes
                      Layouts that use this script
                        Scripts that use this script
                          Script Definition
                          Script Steps
                          • Set Field [ test::output; MBS( "XML.NodeNames"; test::input; 1 ) ]
                          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: [Get Node Names Recursive]Next Script: [Canonical Formatted]
                                  Script NameFormat
                                  Run script with full access privilegesOff
                                  Include In MenuYes
                                  Layouts that use this script
                                    Scripts that use this script
                                      Script Definition
                                      Script Steps
                                      • Set Field [ test::output; MBS( "XML.Format"; test::input; 1 ) ]
                                      Fields used in this script
                                      Scripts used in this script
                                        Layouts used in this script
                                          Tables used in this script
                                          Table occurrences used by this script
                                          Custom Functions used by this script
                                            Custom menu set used by this script

                                              Previous Script: [Format]Next Script: [Extract a subtree]
                                              Script NameCanonical Formatted
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                                Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  • Set Field [ test::output; MBS( "XML.Canonical"; test::input; 0 ) ]
                                                  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: [Canonical Formatted]Next Script: [Set Variables (run in Debugger please)]
                                                          Script NameExtract a subtree
                                                          Run script with full access privilegesOff
                                                          Include In MenuYes
                                                          Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • Set Field [ test::output; MBS( "XML.SubTree"; test::input; "Labels" ) ]
                                                              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: [Extract a subtree]Next Script: [Extract a value]
                                                                      Script NameSet Variables (run in Debugger please)
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuYes
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • Set Variable [ $XMLVariables; Value:MBS( "XML.SetVariables"; test::input; 1) ]
                                                                          • Set Variable [ $otherVariable; Value:1 ]
                                                                          • #See Variables in Data Viewer
                                                                          • Set Field [ test::output; MBS( "XML.ClearVariables"; $XMLVariables) ]
                                                                          • Set Variable [ $someVariable; Value:1 ]
                                                                          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: [Set Variables (run in Debugger please)]Next Script: [Extract multiple values]
                                                                                  Script NameExtract a value
                                                                                  Run script with full access privilegesOff
                                                                                  Include In MenuYes
                                                                                  Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      • Set Field [ test::output; MBS("Xml.ExtractText"; MBS( "XML.SubTree"; test::input; "Name" )) ]
                                                                                      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: [Extract a value]
                                                                                              Script NameExtract multiple values
                                                                                              Run script with full access privilegesOff
                                                                                              Include In MenuYes
                                                                                              Layouts that use this script
                                                                                                Scripts that use this script
                                                                                                  Script Definition
                                                                                                  Script Steps
                                                                                                  • Set Variable [ $xml; Value:"<a><b>123</b><b>456</b><b>789</b></a>" ]
                                                                                                  • Show Custom Dialog [ Title: "Results: "; Message: "First item: " & MBS( "XML.ExtractText"; MBS( "XML.SubTree"; $xml; "b"; 0; 0)) & ¶ & "Second item: " & MBS( "XML.ExtractText"; MBS( "XML.SubTree"; $xml; "b"; 0; 1)) & ¶ & "Third item: " & MBS( "XML.ExtractText"; MBS( "XML.SubTree"; $xml; "b"; 0; 2)); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                  • Show Custom Dialog [ Title: "Second item:"; Message: MBS( "XML.ExtractText"; MBS( "XML.SubTree"; $xml; "b"; 0; 1)); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                  • Show Custom Dialog [ Title: "Third item:"; Message: MBS( "XML.ExtractText"; MBS( "XML.SubTree"; $xml; "b"; 0; 2)); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                  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: XML Test

                                                                                                                Used functions:




                                                                                                                Links
                                                                                                                MBS Xojo Plugins