MBS FileMaker Plugin Example Databases

Alias and NodeID

All examples are included with download of MBS FileMaker Plugin.

Alias and NodeID.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
OnFirstWindowOpenScript: SetDataFileForPath
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Tabelle
9 fields defined, 1 record
Tabelle

Fields

Table Name: Tabelle - 9 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      NodeIDNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          PathFromNodeIDNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              AliasDataNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  PathFromAliasNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      RelativeToPathNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          NoUINormal, NumberAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          • Range: 0 - 1
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              NoMountingNormal, NumberAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              • Range: 0 - 1
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  VolumePathNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German

                                      Layout Objects: Tabelle

                                      Regular Fields

                                      Field Name: Tabelle::Path
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 24 pt
                                      • Left: 138 pt
                                      • Bottom: 38 pt
                                      • Right: 763 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: Tabelle::NodeID
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 42 pt
                                      • Left: 138 pt
                                      • Bottom: 56 pt
                                      • Right: 763 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: Tabelle::PathFromNodeID
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 78 pt
                                      • Left: 138 pt
                                      • Bottom: 92 pt
                                      • Right: 763 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: Tabelle::AliasData
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 96 pt
                                      • Left: 138 pt
                                      • Bottom: 110 pt
                                      • Right: 763 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: Tabelle::PathFromAlias
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 114 pt
                                      • Left: 138 pt
                                      • Bottom: 128 pt
                                      • Right: 763 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: Tabelle::RelativeToPath
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 132 pt
                                      • Left: 138 pt
                                      • Bottom: 146 pt
                                      • Right: 763 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: Tabelle::NoUI
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 150 pt
                                      • Left: 138 pt
                                      • Bottom: 164 pt
                                      • Right: 217 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: Tabelle::NoMounting
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 168 pt
                                      • Left: 138 pt
                                      • Bottom: 182 pt
                                      • Right: 217 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: Tabelle::VolumePath
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 60 pt
                                      • Left: 138 pt
                                      • Bottom: 74 pt
                                      • Right: 763 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

                                      Group Buttons

                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Query Node ID
                                        Additional Properties:
                                      • Change to hand cursor over button
                                      • Rectangular
                                      • Top: 42 pt
                                      • Left: 780 pt
                                      • Bottom: 61 pt
                                      • Right: 919 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “QueryNodeID” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Create Bookmark
                                        Additional Properties:
                                      • Change to hand cursor over button
                                      • Rectangular
                                      • Top: 96 pt
                                      • Left: 780 pt
                                      • Bottom: 115 pt
                                      • Right: 919 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “CreateBookmark” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Resolve Bookmark
                                        Additional Properties:
                                      • Change to hand cursor over button
                                      • Rectangular
                                      • Top: 126 pt
                                      • Left: 780 pt
                                      • Bottom: 145 pt
                                      • Right: 919 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “ResolveBookmark” ]

                                      Scripts:


                                      Script Hierarchy

                                      SetDataFileForPath
                                      QueryNodeID
                                      CreateBookmark
                                      ResolveBookmark

                                      Next Script: [QueryNodeID]
                                      Script NameSetDataFileForPath
                                      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 [ $path; Value:Get ( FilePath ) ]
                                          • Set Variable [ $path; Value:MBS("Path.FilemakerPathToNativePath"; $path) ]
                                          • Set Field [ Tabelle::Path; $path ]
                                          • Set Variable [ $path; Value:Get ( DesktopPath ) ]
                                          • Set Variable [ $path; Value:MBS("Path.FilemakerPathToNativePath"; $path) ]
                                          • Set Field [ Tabelle::RelativeToPath; $path ]
                                          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: [SetDataFileForPath]Next Script: [CreateBookmark]
                                                  Script NameQueryNodeID
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • #Find VolumePath
                                                    • If [ Left ( Tabelle::Path ; 9 ) = "/Volumes/" ]
                                                    • Set Variable [ $pos; Value:Position ( Tabelle::Path ; "/" ; 1 ; 3 ) ]
                                                    • Set Variable [ $volumePath; Value:Left( Tabelle::Path; $pos) ]
                                                    • Show Custom Dialog [ Title: "Warning"; Message: "Finding path from Node ID does not work well for most network drives."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                    • Else
                                                    • Set Variable [ $volumePath; Value:"/" ]
                                                    • End If
                                                    • Set Field [ Tabelle::VolumePath; $volumePath ]
                                                    • #Find Node ID
                                                    • Set Field [ Tabelle::NodeID; MBS("Files.GetNodeID"; Tabelle::Path) ]
                                                    • #This resolves on boot volume.
                                                    • Set Field [ Tabelle::PathFromNodeID; MBS("Files.GetPathFromNodeID"; Tabelle::VolumePath; Tabelle::NodeID) ]
                                                    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: [QueryNodeID]Next Script: [ResolveBookmark]
                                                            Script NameCreateBookmark
                                                            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 [ Tabelle::AliasData; MBS("Files.CreateBookmark"; Tabelle::Path; Tabelle::RelativeToPath) ]
                                                              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: [CreateBookmark]
                                                                      Script NameResolveBookmark
                                                                      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 [ Tabelle::PathFromAlias; MBS("Files.ResolveBookmark"; Tabelle::AliasData; Tabelle::RelativeToPath; Tabelle::NoUI; Tabelle::NoMounting) ]
                                                                        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: Alias and NodeID

                                                                                Used functions:




                                                                                Links
                                                                                MBS Xojo tutorial videos