MBS FileMaker Plugin Example Databases

Trigger Script on Plugin Error

All examples are included with download of MBS FileMaker Plugin.

Trigger Script on Plugin Error.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts5
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
OnFirstWindowOpenScript: Initialize
OnLastWindowCloseScript: Shutdown
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
MyTable
1 field defined, 4 records
MyTable

Fields

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

      Layout Objects: MyLayout

      Regular Fields

      Field Name: MyTable::JSON
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 62 pt
      • Left: 127 pt
      • Bottom: 514 pt
      • Right: 619 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 PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Test
      • Top: 10 pt
      • Left: 127 pt
      • Bottom: 41 pt
      • Right: 244 pt
      • Anchoring: Left, Top
      Perform Script [ “Test” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: XML Error
      • Top: 10 pt
      • Left: 261 pt
      • Bottom: 41 pt
      • Right: 378 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("XML.Parse"; "this is not valid XML") ]

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: File Error
      • Top: 10 pt
      • Left: 395 pt
      • Bottom: 41 pt
      • Right: 512 pt
      • Anchoring: Left, Top
      Set Variable [ $r; Value:MBS("Container.ReadFile"; "/invalid path/test.jpg") ]

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Clear
      • Top: 10 pt
      • Left: 881 pt
      • Bottom: 41 pt
      • Right: 998 pt
      • Anchoring: Left, Top
      Perform Script [ “Clear” ]

      Scripts:


      Script Hierarchy

      Initialize
      GotError
      Clear
      Test
      Shutdown

      Next Script: [GotError]
      Script NameInitialize
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
        Scripts that use this script
          Script Definition
          Script Steps
          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: [Initialize]Next Script: [Clear]
                        Script NameGotError
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                          Scripts that use this script
                            Script Definition
                            Script Steps
                            • Go to Layout [ “MyLayout” ]
                            • New Record/Request
                            • Set Field [ MyTable::JSON; Get(ScriptParameter) ]
                            • Commit Records/Requests
                            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: [GotError]Next Script: [Test]
                                  Script NameClear
                                  Run script with full access privilegesOff
                                  Include In MenuYes
                                  Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • Delete All Records [ 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

                                                  Previous Script: [Clear]Next Script: [Shutdown]
                                                  Script NameTest
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    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: [Test]
                                                                  Script NameShutdown
                                                                  Run script with full access privilegesOff
                                                                  Include In MenuYes
                                                                  Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      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: Trigger Script on Plugin Error

                                                                                    Used functions:




                                                                                    Links
                                                                                    MBS Xojo Plugins