MBS FileMaker Plugin Example Databases

PROJ Library

All examples are included with download of MBS FileMaker Plugin.

PROJ Library.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
PROJ Library
6 fields defined, 3 records
PROJ Library

Fields

Table Name: PROJ Library - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
XNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      YNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ZNormal, 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
                  Source ProjectionNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      Dest ProjectionNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German

                          Layout Objects: PROJ Library

                          Regular Fields

                          Field Name: PROJ Library::X
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 134 pt
                          • Left: 144 pt
                          • Bottom: 155 pt
                          • Right: 397 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: PROJ Library::Y
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 157 pt
                          • Left: 144 pt
                          • Bottom: 178 pt
                          • Right: 397 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: PROJ Library::Z
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 180 pt
                          • Left: 144 pt
                          • Bottom: 201 pt
                          • Right: 397 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: PROJ Library::Output
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 219 pt
                          • Left: 144 pt
                          • Bottom: 329 pt
                          • Right: 397 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: PROJ Library::Source Projection
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 65 pt
                          • Left: 144 pt
                          • Bottom: 86 pt
                          • Right: 397 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: PROJ Library::Dest Projection
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 88 pt
                          • Left: 144 pt
                          • Bottom: 109 pt
                          • Right: 397 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: Initialize
                          • Top: 8 pt
                          • Left: 27 pt
                          • Bottom: 39 pt
                          • Right: 144 pt
                          • Anchoring: Left, Top
                          Perform Script [ “Initialize” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Transform
                          • Top: 187 pt
                          • Left: 415 pt
                          • Bottom: 226 pt
                          • Right: 586 pt
                          • Anchoring: Left, Top
                          Perform Script [ “Transform” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Batch Transform
                          • Top: 244 pt
                          • Left: 415 pt
                          • Bottom: 283 pt
                          • Right: 586 pt
                          • Anchoring: Left, Top
                          Perform Script [ “Test Batch” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Open PROJ Webseite
                          • Top: 442 pt
                          • Left: 48 pt
                          • Bottom: 481 pt
                          • Right: 196 pt
                          • Anchoring: Left, Top
                          Open URL [ "https://proj.org" ] [ No dialog ]

                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Open GitHub Project
                          • Top: 442 pt
                          • Left: 211 pt
                          • Bottom: 481 pt
                          • Right: 359 pt
                          • Anchoring: Left, Top
                          Open URL [ "https://github.com/OSGeo/PROJ" ] [ No dialog ]

                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Open Mac Download Website
                          • Top: 442 pt
                          • Left: 374 pt
                          • Bottom: 481 pt
                          • Right: 560 pt
                          • Anchoring: Left, Top
                          Open URL [ "https://www.kyngchaos.com/software/frameworks/" ] [ No dialog ]

                          Script Hierarchy

                          Initialize
                          Transform
                          Test Batch
                          Clear Results

                          Next Script: [Transform]
                          Script NameInitialize
                          Run script with full access privilegesOff
                          Include In MenuNo
                          Layouts that use this script
                          Scripts that use this script
                            Script Definition
                            Script Steps
                            • If [ 1 ≠ MBS( "Proj.IsInitialize") ]
                            • #where is library?
                            • If [ MBS("IsWindows") ]
                            • Set Variable [ $path; Value:"C:\Users\Christian\Desktop\proj.dll" ]
                            • Else If [ MBS("isMacOS") ]
                            • Set Variable [ $path; Value:"/Library/Frameworks/PROJ.framework" ]
                            • Else If [ MBS("IsLinux") ]
                            • Set Variable [ $path; Value:"/usr/lib/proj.so" ]
                            • Else
                            • Show Custom Dialog [ Title: "Library needs to be specified."; Default Button: “OK”, Commit: “Yes” ]
                            • Exit Script [ ]
                            • End If
                            • #load library
                            • Set Variable [ $r; Value:MBS( "Proj.Initialize"; $path ) ]
                            • If [ MBS("IsError") ]
                            • Show Custom Dialog [ Title: "Failed to load library"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                            • End If
                            • End If
                            Fields used in this script
                              Scripts used in this script
                                Layouts used in this script
                                  Tables used in this script
                                    Table occurrences used by this script
                                      Custom Functions used by this script
                                        Custom menu set used by this script

                                          Previous Script: [Initialize]Next Script: [Test Batch]
                                          Script NameTransform
                                          Run script with full access privilegesOff
                                          Include In MenuNo
                                          Layouts that use this script
                                          Scripts that use this script
                                            Script Definition
                                            Script Steps
                                            • Set Field [ PROJ Library::Output; MBS( "Proj.Transform"; PROJ Library::Source Projection; PROJ Library::Dest Projection; PROJ Library::X; PROJ Library::Y; PROJ Library::Z ) ]
                                            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: [Transform]Next Script: [Clear Results]
                                                    Script NameTest Batch
                                                    Run script with full access privilegesOff
                                                    Include In MenuYes
                                                    Layouts that use this script
                                                    Scripts that use this script
                                                      Script Definition
                                                      Script Steps
                                                      • #build input data
                                                      • #loop counting up from 1 to $count
                                                      • Set Variable [ $count; Value:10 ]
                                                      • Set Variable [ $index; Value:1 ]
                                                      • Set Variable [ $JSON; Value:"[]" ]
                                                      • If [ $index ≤ $count ]
                                                      • Loop
                                                      • #your script steps here
                                                      • Set Variable [ $j; Value:"{}" ]
                                                      • Set Variable [ $j; Value:JSONSetElement ( $j ; "x" ; PROJ Library::X + $index - 5 ; JSONNumber ) ]
                                                      • Set Variable [ $j; Value:JSONSetElement ( $j ; "y" ; PROJ Library::Y + $index - 5 ; JSONNumber ) ]
                                                      • Set Variable [ $j; Value:JSONSetElement ( $j ; "z" ; PROJ Library::Z + $index - 5 ; JSONNumber ) ]
                                                      • Set Variable [ $JSON; Value:MBS( "JSON.AddItemToArray"; $JSON; $J ) ]
                                                      • #next
                                                      • Set Variable [ $index; Value:$index + 1 ]
                                                      • Exit Loop If [ $index > $count ]
                                                      • End Loop
                                                      • End If
                                                      • Set Field [ PROJ Library::Output; MBS( "Proj.BatchTransform"; PROJ Library::Source Projection; PROJ Library::Dest Projection; $JSON ) ]
                                                      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 Batch]
                                                              Script NameClear Results
                                                              Run script with full access privilegesOff
                                                              Include In MenuYes
                                                              Layouts that use this script
                                                                Scripts that use this script
                                                                  Script Definition
                                                                  Script Steps
                                                                  • Replace Field Contents [ PROJ Library::Output; 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: PROJ Library

                                                                          Used functions:




                                                                          Links
                                                                          MBS FileMaker tutorial videos