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
Tables 1
Relationships 0
Layouts 1
Scripts 3
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalistisch
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Comments
Occurrences in Relationship Graph
DragTest
2 fields defined, 0 record
DragTest

Fields

Table Name: DragTest - 2 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
test Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
          field Normal, Binary Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1

              Layout Objects: DragTest

              Regular Fields

              Field Name: DragTest::field
              Field Properties Coordinates Field Format Field Behavior Quick 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 Name DragAction
              Run script with full access privileges Off
              Siri Shortcut Visible Off
              Include In Menu Yes
              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 [ Flush: Always ]
                  • 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 Name SetupDrop
                          Run script with full access privileges Off
                          Siri Shortcut Visible Off
                          Include In Menu Yes
                          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 Name FreeDrop
                                            Run script with full access privileges Off
                                            Siri Shortcut Visible Off
                                            Include In Menu Yes
                                            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: