MBS FileMaker Plugin Example Databases

Environment Variables

All examples are included with download of MBS FileMaker Plugin.

Environment Variables.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
Environment Variables
5 fields defined, 0 record
Environment Variables

Fields

Table Name: Environment Variables - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
NameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      IndexNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ValueNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              SetNameNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Global
              • Repetitions: 1
              • Index Language: German
                    SetValueNormal, TextAuto-Enter:
                    • Allow editing
                    Validation:
                    • Only during data entry
                    Storage:
                    • Global
                    • Repetitions: 1
                    • Index Language: German

                          Layout Objects: Environment Variables

                          Regular Fields

                          Field Name: Environment Variables::Name
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 72 pt
                          • Left: 96 pt
                          • Bottom: 86 pt
                          • Right: 349 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: Environment Variables::Index
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 72 pt
                          • Left: 6 pt
                          • Bottom: 86 pt
                          • Right: 85 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: Environment Variables::Value
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 72 pt
                          • Left: 354 pt
                          • Bottom: 86 pt
                          • Right: 607 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: Environment Variables::SetName
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 12 pt
                          • Left: 270 pt
                          • Bottom: 26 pt
                          • Right: 523 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: Environment Variables::SetValue
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 30 pt
                          • Left: 270 pt
                          • Bottom: 44 pt
                          • Right: 523 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: Query Environment Variables
                            Additional Properties:
                          • Change to hand cursor over button
                          • Rectangular
                          • Top: 12 pt
                          • Left: 18 pt
                          • Bottom: 38 pt
                          • Right: 205 pt
                          • Anchoring: Left, Top
                          Perform Script [ “QueryEnvironment” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Set Variable
                            Additional Properties:
                          • Change to hand cursor over button
                          • Rectangular
                          • Top: 18 pt
                          • Left: 540 pt
                          • Bottom: 43 pt
                          • Right: 631 pt
                          • Anchoring: Left, Top
                          Show Custom Dialog [ Title: "Set Environment Variable"; Message: MBS("EnvironmentVariables.SetValue"; Environment Variables::SetName; Environment Variables::SetValue); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]

                          Fields:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Clear Variable
                            Additional Properties:
                          • Change to hand cursor over button
                          • Rectangular
                          • Top: 18 pt
                          • Left: 642 pt
                          • Bottom: 43 pt
                          • Right: 733 pt
                          • Anchoring: Left, Top
                          Show Custom Dialog [ Title: "Set Environment Variable"; Message: MBS("EnvironmentVariables.ClearValue"; Environment Variables::SetName); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]

                          Fields:


                          Script Hierarchy

                          QueryEnvironment

                          Script NameQueryEnvironment
                          Run script with full access privilegesOff
                          Include In MenuYes
                          Layouts that use this script
                          Scripts that use this script
                            Script Definition
                            Script Steps
                            • Delete All Records [ No dialog ]
                            • Set Variable [ $count; Value:MBS("EnvironmentVariables.Count") ]
                            • If [ MBS("Error") ]
                            • Show Custom Dialog [ Title: "Error"; Message: $count; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                            • Else
                            • Set Variable [ $index; Value:0 ]
                            • Loop
                            • New Record/Request
                            • Set Variable [ $name; Value:MBS("EnvironmentVariables.Name"; $index) ]
                            • Set Variable [ $value; Value:MBS("EnvironmentVariables.Value"; $name) ]
                            • Set Field [ Environment Variables::Index; $index ]
                            • Set Field [ Environment Variables::Name; $name ]
                            • Set Field [ Environment Variables::Value; $value ]
                            • Commit Records/Requests
                            • Set Variable [ $index; Value:$index + 1 ]
                            • Exit Loop If [ $count = $index ]
                            • 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: Environment Variables

                                    Used functions:




                                    Links
                                    MBS FileMaker blog