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

MBS FileMaker Plugin Example Databases

Dialog Test

All examples are included with download of MBS FileMaker Plugin.

Dialog Test.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts3
Value Lists0
Custom Functions0
Custom Menus0
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
Dialog Test
2 fields defined, 1 record
Dialog Test

Fields

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

            Layout Objects: Dialog Test

            Regular Fields

            Field Name: Dialog Test::Input
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 141 pt
            • Left: 66 pt
            • Bottom: 228 pt
            • Right: 397 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: Default for Data Type
            • Go to next field using: Tab key
            Yes

            Field Name: Dialog Test::Result
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 272 pt
            • Left: 66 pt
            • Bottom: 293 pt
            • Right: 319 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: Default for Data Type
            • Go to next field using: Tab key
            Yes

            Buttons

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Show Dialog
            • Top: 365 pt
            • Left: 374 pt
            • Bottom: 407 pt
            • Right: 504 pt
            • Anchoring: Left, Top
            Perform Script [ “Show Dialog” ]

            Scripts:


            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Show Card
            • Top: 365 pt
            • Left: 528 pt
            • Bottom: 407 pt
            • Right: 658 pt
            • Anchoring: Left, Top
            Perform Script [ “Show Card” ]

            Scripts:


            Layout Objects: Card

            Regular Fields

            Field Name: Dialog Test::Input
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 71 pt
            • Left: 41 pt
            • Bottom: 172 pt
            • Right: 372 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: Default for Data Type
            • Go to next field using: Tab key
            Yes

            Buttons

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: OK
            • Top: 183 pt
            • Left: 264 pt
            • Bottom: 219 pt
            • Right: 372 pt
            • Anchoring: Left, Top
            Perform Script [ “Return from Dialog”; Parameter: "OK" ]

            Scripts:


            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text: Cancel
            • Top: 183 pt
            • Left: 138 pt
            • Bottom: 219 pt
            • Right: 246 pt
            • Anchoring: Left, Top
            Perform Script [ “Return from Dialog”; Parameter: "Cancel" ]

            Scripts:


            Script Hierarchy

            Show Dialog
            Show Card
            Return from Dialog

            Next Script: [Show Card]
            Script NameShow Dialog
            Run script with full access privilegesOff
            Include In MenuNo
            Layouts that use this script
            Scripts that use this script
              Script Definition
              Script Steps
              • Set Variable [ $x; Value:Get ( ScreenWidth ) / 2 - 200 ]
              • Set Variable [ $y; Value:Get ( ScreenHeight ) / 3 - 100 ]
              • New Window [ Style: Dialog; Name: "Dialog"; Using layout: “Card”; Height: 240+20; Width: 400; Top: $y; Left: $x; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]
              • #for older FileMaker version without the layout option above, switch to right layout
              • If [ Get ( LayoutName ) ≠ "Card" ]
              • Go to Layout [ “Card” ]
              • End If
              • Show/Hide Toolbars [ Hide ]
              • Loop
              • Pause/Resume Script [ Indefinitely ]
              • Set Variable [ $Result; Value:Get(ScriptResult) ]
              • Exit Loop If [ Length($Result) > 0 ]
              • End Loop
              • Close Window [ Name: "Dialog"; Current file ]
              • Set Field [ Dialog Test::Result; $Result ]
              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: [Show Dialog]Next Script: [Return from Dialog]
                    Script NameShow Card
                    Run script with full access privilegesOff
                    Include In MenuNo
                    Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • New Window [ Style: Card; Name: "Dialog"; Using layout: “Card”; Height: 240; Width: 400; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: Yes; Toolbars: No ]
                      • #for older FileMaker version without the layout option above, switch to right layout
                      • If [ Get ( LayoutName ) ≠ "Card" ]
                      • Go to Layout [ “Card” ]
                      • Show/Hide Toolbars [ Hide ]
                      • End If
                      • Loop
                      • Pause/Resume Script [ Indefinitely ]
                      • Set Variable [ $Result; Value:Get(ScriptResult) ]
                      • Exit Loop If [ Length($Result) > 0 ]
                      • End Loop
                      • Close Window [ Name: "Dialog"; Current file ]
                      • Set Field [ Dialog Test::Result; $Result ]
                      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: [Show Card]
                            Script NameReturn from Dialog
                            Run script with full access privilegesOff
                            Include In MenuNo
                            Layouts that use this script
                            Scripts that use this script
                              Script Definition
                              Script Steps
                              • #Call this script from dialog buttons to pass back a result value
                              • Exit Script [ Result: Get(ScriptParameter) ]
                              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: Dialog Test