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

MBS FileMaker Plugin Example Databases

Container Batch Export

All examples are included with download of MBS FileMaker Plugin.

Container Batch Export.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
Container Batch Export
3 fields defined, 1 record
Container Batch Export

Fields

Table Name: Container Batch Export - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
Test1Normal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      Test2Normal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          Test3Normal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1

              Layout Objects: Container Batch Export

              Regular Fields

              Field Name: Container Batch Export::Test1
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 54 pt
              • Left: 138 pt
              • Bottom: 179 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: Container Batch Export::Test2
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 180 pt
              • Left: 138 pt
              • Bottom: 305 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: Container Batch Export::Test3
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 306 pt
              • Left: 138 pt
              • Bottom: 431 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

              Group Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Export all
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 432 pt
              • Bottom: 31 pt
              • Right: 523 pt
              • Anchoring: Left, Top
              Perform Script [ “Export” ]

              Scripts:


              Script Hierarchy

              Export

              Script NameExport
              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("FileDialog.Reset") ]
                • Set Variable [ $r; Value:MBS("FileDialog.SetMessage"; "Export folder?") ]
                • Set Variable [ $r; Value:MBS("FileDialog.SelectFolderDialog") ]
                • If [ $r = "OK" ]
                • Set Variable [ $npath; Value:MBS( "FileDialog.GetPath"; 0 ) ]
                • Set Variable [ $fpath; Value:MBS( "Path.NativePathToFilemakerPath"; $npath ) ]
                • Go to Record/Request/Page [ First ]
                • Loop
                • #Export files from this record
                • #1. Container
                • Set Variable [ $name; Value:Container Batch Export::Test1 ]
                • Set Variable [ $name; Value:GetValue($name; 1) ]
                • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $name ) ]
                • Set Variable [ $dpath; Value:MBS( "Path.AddPathComponent"; $fpath; $name ) ]
                • Export Field Contents [ Container Batch Export::Test1; “file:$dpath” ]
                • #2. Container
                • Set Variable [ $name; Value:Container Batch Export::Test2 ]
                • Set Variable [ $name; Value:GetValue($name; 1) ]
                • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $name ) ]
                • Set Variable [ $dpath; Value:MBS( "Path.AddPathComponent"; $fpath; $name ) ]
                • Export Field Contents [ Container Batch Export::Test1; “file:$dpath” ]
                • #3. Container
                • Set Variable [ $name; Value:Container Batch Export::Test3 ]
                • Set Variable [ $name; Value:GetValue($name; 1) ]
                • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $name ) ]
                • Set Variable [ $dpath; Value:MBS( "Path.AddPathComponent"; $fpath; $name ) ]
                • Export Field Contents [ Container Batch Export::Test1; “file:$dpath” ]
                • #Next record
                • Go to Record/Request/Page [ Next; Exit after last ]
                • 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: Container Batch Export

                        Used functions: