MBS FileMaker Plugin Example Databases

Command Line Arguments

All examples are included with download of MBS FileMaker Plugin.

Command Line Arguments.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
Command Line Arguments
2 fields defined, 1 record
Command Line Arguments

Fields

Table Name: Command Line Arguments - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ArgumentCountNormal, NumberAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      ArgumentNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: Command Line Arguments

          Regular Fields

          Field Name: Command Line Arguments::ArgumentCount
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 102 pt
          • Left: 138 pt
          • Bottom: 116 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: Command Line Arguments::Argument
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 126 pt
          • Left: 138 pt
          • Bottom: 140 pt
          • Right: 811 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: Get Arguments
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 12 pt
          • Left: 18 pt
          • Bottom: 37 pt
          • Right: 121 pt
          • Anchoring: Left, Top
          Perform Script [ “Run” ]

          Scripts:


          Script Hierarchy

          Run

          Script NameRun
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            • # Count?
            • Set Variable [ $count; Value:MBS("FM.ArgumentCount") ]
            • Set Field [ Command Line Arguments::ArgumentCount; $count ]
            • If [ MBS("IsError") ]
            • Show Custom Dialog [ Title: "Plugin Failed?"; Message: "Maybe an older plugin or something else wrong?" & ¶ & ¶ & $count; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
            • Exit Script [ ]
            • End If
            • # Loop
            • Delete All Records [ No dialog ]
            • Set Variable [ $index; Value:0 ]
            • Loop
            • # get nth argument
            • Set Variable [ $text; Value:MBS("FM.Argument"; $index) ]
            • New Record/Request
            • Set Field [ Command Line Arguments::Argument; $text ]
            • Commit Records/Requests [ Skip data entry validation; No dialog ]
            • # next
            • Set Variable [ $index; Value:$index + 1 ]
            • Exit Loop If [ $count = $index ]
            • End Loop
            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: Command Line Arguments

                    Used functions:




                    Links
                    MBS Xojo Chart Plugins