Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

File listing recursive

All examples are included with download of MBS FileMaker Plugin.

File listing recursive.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
File listing
8 fields defined, 23 records
File listing

Fields

Table Name: File listing - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      OnlyVisibleNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      • Strict data type: Numeric
      • Range: 0 - 1
      Storage:
      • Global
      • Repetitions: 1
      • Index Language: German
          OnlyFilesNormal, NumberAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          • Strict data type: Numeric
          • Range: 0 - 1
          Storage:
          • Global
          • Repetitions: 1
          • Index Language: German
              OnlyDirectoryNormal, NumberAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              • Strict data type: Numeric
              • Range: 0 - 1
              Storage:
              • Global
              • Repetitions: 1
              • Index Language: German
                  ResultNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Global
                  • Repetitions: 1
                  • Index Language: German
                      NameNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          TreatPackagesAsFilesNormal, NumberAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          • Strict data type: Numeric
                          • Range: 0 - 1
                          Storage:
                          • Global
                          • Repetitions: 1
                          • Index Language: German
                              ListPackageContentNormal, NumberAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              • Strict data type: Numeric
                              • Range: 0 - 1
                              Storage:
                              • Global
                              • Repetitions: 1
                              • Index Language: German

                                  Layout Objects: File listing

                                  Regular Fields

                                  Field Name: File listing::Path
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 6 pt
                                  • Left: 138 pt
                                  • Bottom: 20 pt
                                  • Right: 553 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: File listing::OnlyVisible
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 24 pt
                                  • Left: 138 pt
                                  • Bottom: 38 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
                                  No

                                  Field Name: File listing::OnlyFiles
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 42 pt
                                  • Left: 138 pt
                                  • Bottom: 56 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
                                  No

                                  Field Name: File listing::OnlyDirectory
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 60 pt
                                  • Left: 138 pt
                                  • Bottom: 74 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
                                  No

                                  Field Name: File listing::Result
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 138 pt
                                  • Left: 138 pt
                                  • Bottom: 152 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
                                  No

                                  Field Name: File listing::Name
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 162 pt
                                  • Left: 138 pt
                                  • Bottom: 176 pt
                                  • Right: 553 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: File listing::TreatPackagesAsFiles
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 95 pt
                                  • Left: 138 pt
                                  • Bottom: 109 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
                                  No

                                  Field Name: File listing::ListPackageContent
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 78 pt
                                  • Left: 138 pt
                                  • Bottom: 92 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
                                  No

                                  Group Buttons

                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: List Directory
                                    Additional Properties:
                                  • Change to hand cursor over button
                                  • Rectangular
                                  • Top: 126 pt
                                  • Left: 456 pt
                                  • Bottom: 151 pt
                                  • Right: 559 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “List” ]

                                  Scripts:


                                  Script Hierarchy

                                  List

                                  Script NameList
                                  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 [ $r; Value:MBS("Trace") ]
                                    • Set Variable [ $options; Value:0 ]
                                    • If [ File listing::OnlyVisible ≠ 0 ]
                                    • Set Variable [ $options; Value:4 + $options ]
                                    • End If
                                    • If [ File listing::OnlyFiles ≠ 0 ]
                                    • Set Variable [ $options; Value:1 + $options ]
                                    • End If
                                    • If [ File listing::OnlyDirectory ≠ 0 ]
                                    • Set Variable [ $options; Value:2 + $options ]
                                    • End If
                                    • If [ File listing::TreatPackagesAsFiles ≠ 0 ]
                                    • Set Variable [ $options; Value:32 + $options ]
                                    • End If
                                    • If [ File listing::ListPackageContent ≠ 0 ]
                                    • Set Variable [ $options; Value:16 + $options ]
                                    • End If
                                    • Delete All Records [ No dialog ]
                                    • Set Variable [ $r; Value:MBS("Files.ListRecursive"; File listing::Path; $options) ]
                                    • Set Field [ File listing::Result; $r ]
                                    • Set Variable [ $count; Value:ValueCount ( $r ) ]
                                    • Set Variable [ $index; Value:0 ]
                                    • If [ $count>0 ]
                                    • Loop
                                    • New Record/Request
                                    • Set Field [ File listing::Name; GetValue ( $r ; $index+1 ) ]
                                    • Commit Records/Requests [ No dialog ]
                                    • Set Variable [ $index; Value:$index + 1 ]
                                    • Exit Loop If [ $index = $count ]
                                    • End Loop
                                    • 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

                                            Download example: File listing recursive

                                            Used functions: