MBS FileMaker Plugin Example Databases

Swiss Post Addresscheck V4-02-00

All examples are included with download of MBS FileMaker Plugin.

Swiss Post Addresscheck V4-02-00.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus33
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
14 fields defined, 1 record
Test

Fields

Table Name: Test - 14 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ResultNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          DebugNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              XML TemplateNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Global
              • Repetitions: 1
              • Index Language: German
                  UsernameNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      PasswortNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          NamesNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              StreetNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  NumberNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                      ZipNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German
                                          TownNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              OutputStreetFormattedNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  OutputTownNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      OutputZipNormal, 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::Result
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 78 pt
                                                          • Left: 138 pt
                                                          • Bottom: 92 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: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Text
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 96 pt
                                                          • Left: 138 pt
                                                          • Bottom: 224 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: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Debug
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 228 pt
                                                          • Left: 138 pt
                                                          • Bottom: 524 pt
                                                          • Right: 547 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::XML Template
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 565 pt
                                                          • Left: 138 pt
                                                          • Bottom: 579 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: System Default
                                                          • Go to next field using: Tab key
                                                          No

                                                          Field Name: Test::Username
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 79 pt
                                                          • Left: 636 pt
                                                          • Bottom: 93 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Passwort
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 97 pt
                                                          • Left: 636 pt
                                                          • Bottom: 111 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Names
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 145 pt
                                                          • Left: 636 pt
                                                          • Bottom: 159 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Street
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 181 pt
                                                          • Left: 636 pt
                                                          • Bottom: 195 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Number
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 199 pt
                                                          • Left: 636 pt
                                                          • Bottom: 213 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Town
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 217 pt
                                                          • Left: 636 pt
                                                          • Bottom: 231 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::Zip
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 235 pt
                                                          • Left: 636 pt
                                                          • Bottom: 249 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::OutputStreetFormatted
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 295 pt
                                                          • Left: 636 pt
                                                          • Bottom: 309 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::OutputTown
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 313 pt
                                                          • Left: 636 pt
                                                          • Bottom: 327 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::OutputZip
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 331 pt
                                                          • Left: 636 pt
                                                          • Bottom: 345 pt
                                                          • Right: 889 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          Yes

                                                          Field Name: Test::XML Template
                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                          • Top: 409 pt
                                                          • Left: 647 pt
                                                          • Bottom: 423 pt
                                                          • Right: 900 pt
                                                          • Anchoring: Left, Top
                                                          Field Format:
                                                          • Edit Box
                                                          Field Behavior:
                                                          • Allow field to be entered: In Find mode, In Browse mode
                                                          • Touch keyboard type: System Default
                                                          • Go to next field using: Tab key
                                                          No

                                                          Group Buttons

                                                          Button PropertiesCoordinatesScript/Script Step
                                                            Type:
                                                          • Text: Run Query
                                                            Additional Properties:
                                                          • Change to hand cursor over button
                                                          • Rectangular
                                                          • Top: 102 pt
                                                          • Left: 408 pt
                                                          • Bottom: 127 pt
                                                          • Right: 541 pt
                                                          • Anchoring: Left, Top
                                                          Perform Script [ “Run” ]

                                                          Scripts:


                                                          Button PropertiesCoordinatesScript/Script Step
                                                            Type:
                                                          • Text: Trace on
                                                            Additional Properties:
                                                          • Change to hand cursor over button
                                                          • Rectangular
                                                          • Top: 534 pt
                                                          • Left: 12 pt
                                                          • Bottom: 559 pt
                                                          • Right: 145 pt
                                                          • Anchoring: Left, Top
                                                          Set Variable [ $result; Value:MBS("Trace") ]

                                                          Script Hierarchy

                                                          Run

                                                          Script NameRun
                                                          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 [ $curl; Value:MBS("CURL.New") ]
                                                            • Set Variable [ $result; Value:MBS("CURL.SetOptionURL"; $curl; "https://webservices.post.ch/IN_ADRCHECKERxV4xEXTERNE/V4-02-00") ]
                                                            • Set Variable [ $xml; Value:Test::XML Template ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$CallUser$$"; MBS("Text.EncodeToXML"; Test::Username)) ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$Names$$"; MBS("Text.EncodeToXML";Test::Names)) ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$Street$$"; MBS("Text.EncodeToXML"; Test::Street)) ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$Town$$"; MBS("Text.EncodeToXML"; Test::Town)) ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$Zip$$"; MBS("Text.EncodeToXML"; Test::Zip)) ]
                                                            • Set Variable [ $xml; Value:Substitute($xml; "$$HouseNbr$$"; MBS("Text.EncodeToXML";Test::Number)) ]
                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionPostFields"; $curl; $xml) ]
                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionUserName"; $curl; Test::Username) ]
                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionPassword"; $curl; Test::Passwort) ]
                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "SOAPAction: \"http://post.ch/AdressCheckerExtern/V4-02-00\""; "Expect:"; "Content-Type: text/xml; charset=\"utf-8\"") ]
                                                            • Set Field [ Test::Result; MBS("CURL.Perform"; $curl) ]
                                                            • Set Field [ Test::Text; MBS("CURL.GetResultAsText"; $curl; "UTF8") ]
                                                            • Set Field [ Test::Debug; MBS("CURL.GetDebugAsText"; $curl) ]
                                                            • Set Field [ Test::OutputStreetFormatted; MBS( "XML.Query"; Test::Text; "//*[local-name()='StreetFormatted']/text()"; ""; 2 ) ]
                                                            • Set Field [ Test::OutputTown; MBS( "XML.Query"; Test::Text; "//*[local-name()='Town27']/text()"; ""; 2 ) ]
                                                            • Set Field [ Test::OutputZip; MBS( "XML.Query"; Test::Text; "//*[local-name()='Zip']/text()"; ""; 2 ) ]
                                                            • Set Variable [ $result; Value:MBS("CURL.Cleanup"; $curl) ]
                                                            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: Swiss Post Addresscheck V4-02-00

                                                                    Used functions:




                                                                    Links
                                                                    MBS Xojo tutorial videos