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

MBS FileMaker Plugin Example Databases

DragTest multiple picture files

All examples are included with download of MBS FileMaker Plugin.

DragTest multiple picture files.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
DragTest
2 fields defined, 0 record
DragTest

Fields

Table Name: DragTest - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
testNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
          fieldNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1

              Layout Objects: DragTest

              Regular Fields

              Field Name: DragTest::field
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 48 pt
              • Left: 6 pt
              • Bottom: 185 pt
              • Right: 676 pt
              • Anchoring: Left and Right, 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

              Script Hierarchy

              DragAction
              SetupDrop
              FreeDrop

              Next Script: [SetupDrop]
              Script NameDragAction
              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 [ $dropview; Value:Get(ScriptParameter) ]
                  • Set Variable [ $count; Value:MBS("DragDrop.GetPathCount"; $dropview) ]
                  • // Show Custom Dialog [ Message: "Number of files: " & $count; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                  • If [ $count > 0 ]
                  • Set Variable [ $index; Value:0 ]
                  • Loop
                  • Pause/Resume Script [ Duration (seconds): ,1 ]
                  • New Record/Request
                  • Set Variable [ $path; Value:MBS("DragDrop.GetPath"; $dropview; $index) ]
                  • If [ MBS("Files.FileExists"; $path) = 0 ]
                  • #File not yet written? Wait a bit
                  • Pause/Resume Script [ Duration (seconds): 1 ]
                  • End If
                  • Set Field [ DragTest::field; MBS("Files.ReadFile"; $path; "auto") ]
                  • 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

                          Previous Script: [DragAction]Next Script: [FreeDrop]
                          Script NameSetupDrop
                          Run script with full access privilegesOff
                          Include In MenuYes
                          Layouts that use this script
                            Scripts that use this script
                              Script Definition
                              Script Steps
                              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: [SetupDrop]
                                            Script NameFreeDrop
                                            Run script with full access privilegesOff
                                            Include In MenuYes
                                            Layouts that use this script
                                              Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • If [ Length($$dropView) > 0 ]
                                                • Set Variable [ $result; Value:MBS( "DragDrop.Release"; $$dropview) ]
                                                • Set Variable [ $$dropview; Value:"" ]
                                                • 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: DragTest multiple picture files

                                                              Used functions: