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

MBS FileMaker Plugin Example Databases

Swipe

All examples are included with download of MBS FileMaker Plugin.

Swipe.fmp12

Overview
Tables1
Relationships1
Layouts3
Scripts5
Value Lists0
Custom Functions2
Custom Menus24
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 layoutSwipe Gesture
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Trace
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
swipe
8 fields defined, 55 records
swipe 2, swipe

Fields

Table Name: swipe - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
idNormal, TextAuto-Enter:
  • Context table: swipe
    Calculation: Get( UUID )
Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
{"comment":"Primary key"}
        createdOnNormal, TimestampAuto-Enter:
        • Creation timestamp
        Validation:
        • Only during data entry
        • Strict data type: 4 digit year
        • Not empty
        • Strict validation
        Storage:
        • Repetitions: 1
        • Indexing: None
        • Automatically create indexes as needed
        • Index Language: English
        {"comment":"The timestamp for when the record was created."}
                createdByNormal, TextAuto-Enter:
                • Creation account name
                Validation:
                • Only during data entry
                • Not empty
                • Strict validation
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: English
                {"comment":"The account of record creation."}
                        modifiedOnNormal, TimestampAuto-Enter:
                        • Modification timestamp
                        Validation:
                        • Only during data entry
                        • Strict data type: 4 digit year
                        • Not empty
                        • Strict validation
                        Storage:
                        • Repetitions: 1
                        • Indexing: None
                        • Automatically create indexes as needed
                        • Index Language: English
                        {"comment":"The timestamp for when the record was last modified."}
                                modifiedByNormal, TextAuto-Enter:
                                • Modification account name
                                Validation:
                                • Only during data entry
                                • Not empty
                                • Strict validation
                                Storage:
                                • Repetitions: 1
                                • Indexing: None
                                • Automatically create indexes as needed
                                • Index Language: English
                                {"comment":"Most recent account to modify the record."}
                                        createdUTCNormal, NumberAuto-Enter:
                                        • Do not replace existing value for field (if any)
                                        • Context table: swipe
                                          Calculation: Get ( CurrentTimeUTCMilliseconds )
                                        Validation:
                                        • Only during data entry
                                        • Not empty
                                        • Strict validation
                                        Storage:
                                        • Repetitions: 1
                                        • Indexing: None
                                        • Automatically create indexes as needed
                                        • Index Language: English
                                        {"comment":"UTC Timestamp when the record was created."}
                                                modifiedUTCNormal, NumberAuto-Enter:
                                                • Context table: swipe
                                                  Calculation: Let ( ~trigger = GetField ( "" ) ; Get ( CurrentTimeUTCMilliseconds ) )
                                                Validation:
                                                • Only during data entry
                                                • Not empty
                                                • Strict validation
                                                Storage:
                                                • Repetitions: 1
                                                • Indexing: None
                                                • Automatically create indexes as needed
                                                • Index Language: English
                                                {"comment":"UTC Timestamp when the record was last modified."}
                                                        EVALNormal, TextAuto-Enter:
                                                        • Allow editing
                                                        Validation:
                                                        • Only during data entry
                                                        Storage:
                                                        • Global
                                                        • Repetitions: 1
                                                        • Index Language: English

                                                            Layout Objects: Swipe Gesture

                                                            Regular Fields

                                                            Field Name: swipe::EVAL
                                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                            • Top: 113 pt
                                                            • Left: 11 pt
                                                            • Bottom: 265 pt
                                                            • Right: 325 pt
                                                            • Anchoring: Left and Right, Top and Bottom
                                                            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
                                                            No

                                                            Buttons

                                                            Button PropertiesCoordinatesScript/Script Step
                                                              Type:
                                                            • Text: Examples List
                                                            • Top: 3 pt
                                                            • Left: 228 pt
                                                            • Bottom: 37 pt
                                                            • Right: 336 pt
                                                            • Anchoring: Right, Top
                                                            Select Window [ Name: "iOS Examples" ]

                                                            Button Bars

                                                            Button Bar PropertiesCoordinates
                                                              Orientation:
                                                            • horizontal
                                                            • Top: 277 pt
                                                            • Left: 0 pt
                                                            • Bottom: 341 pt
                                                            • Right: 336 pt
                                                            • Anchoring: Left and Right, Bottom
                                                            Button Segments
                                                            Button PropertiesCoordinatesScript/Script Step
                                                              Type:
                                                            • Text:
                                                              Label Calculations:
                                                            • "Menu"
                                                            • Top: 277 pt
                                                            • Left: 0 pt
                                                            • Bottom: 341 pt
                                                            • Right: 112 pt
                                                            Show Custom Dialog [ Title: "Do nothing"; Message: "That's exactly what I do."; Default Button: “OK”, Commit: “Yes” ]
                                                            Button PropertiesCoordinatesScript/Script Step
                                                              Type:
                                                            • Text:
                                                              Label Calculations:
                                                            • "Show Sheet"
                                                            • Top: 277 pt
                                                            • Left: 112 pt
                                                            • Bottom: 341 pt
                                                            • Right: 224 pt
                                                            Perform Script [ “Show Sheet” ]

                                                            Scripts:

                                                            Button PropertiesCoordinatesScript/Script Step
                                                              Type:
                                                            • Text:
                                                              Label Calculations:
                                                            • "Info"
                                                            • Top: 277 pt
                                                            • Left: 224 pt
                                                            • Bottom: 341 pt
                                                            • Right: 336 pt
                                                            Show Custom Dialog [ Title: "Show Sheet"; Message: "Did you try that one in an iOS SDK app?"; Default Button: “I'll Try”, Commit: “Yes” ]

                                                            Graphic Objects

                                                            Graphic Object PropertiesCoordinates
                                                              Object Name:
                                                            • text.header
                                                              Type:
                                                            • Text: SwipeGestureRecognizer
                                                              Hide Condition:
                                                            • Get ( WindowStyle ) = 3
                                                            • Top: 0 pt
                                                            • Left: 0 pt
                                                            • Bottom: 40 pt
                                                            • Right: 336 pt
                                                            • Anchoring: Left and Right, Top

                                                            Layout Objects: Card Sheet

                                                            Merge Fields

                                                            Field PropertiesCoordinatesFieldsQuick Find
                                                              Text:
                                                            • {{RecordNumber}}
                                                            • Top: 136 pt
                                                            • Left: 62 pt
                                                            • Bottom: 158 pt
                                                            • Right: 221 pt
                                                            • Anchoring: Left, Top
                                                              No

                                                              Buttons

                                                              Button PropertiesCoordinatesScript/Script Step
                                                                Type:
                                                              • Text:
                                                                Hide Condition:
                                                              • Get ( Device ) ≥ 3
                                                              • Top: 10 pt
                                                              • Left: 281 pt
                                                              • Bottom: 38 pt
                                                              • Right: 335 pt
                                                              • Anchoring: Right, Top
                                                              Close Window [ Current Window ]

                                                              Portals

                                                              Portal PropertiesCoordinatesFieldsOptions
                                                              • Top: 130 pt
                                                              • Left: 55 pt
                                                              • Bottom: 442 pt
                                                              • Right: 282 pt
                                                              • Anchoring: Center, Top and Bottom
                                                              Merge Field Objects
                                                              • Sort records: Off
                                                              • Filter calculation: None
                                                              • Initial Row: 1
                                                              • Number of Rows: 10
                                                              • Show vertical scroll bar

                                                              Layout Objects: Blank

                                                              Graphic Objects

                                                              Graphic Object PropertiesCoordinates
                                                                Type:
                                                              • Text: See my tooltip for info.
                                                                Tooltip:
                                                              • "/*¶Using any object with anchors¶on the bottom and right will¶force a layout to render its¶background color for the full¶screen.¶*/"
                                                              • Top: 227 pt
                                                              • Left: 264 pt
                                                              • Bottom: 249 pt
                                                              • Right: 430 pt
                                                              • Anchoring: Right, Bottom

                                                              Script Hierarchy

                                                              Show Sheet
                                                              Dismiss Sheet
                                                              -
                                                              Trace
                                                              OnObjectSave Eval

                                                              Next Script: [Dismiss Sheet]
                                                              Script NameShow Sheet
                                                              Run script with full access privilegesOff
                                                              Include In MenuNo
                                                              Layouts that use this script
                                                              Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • If [ Get ( Device ) < 3 ]
                                                                • Show Custom Dialog [ Title: "Designed for MBS iOS SDK use"; Message: "This feature simulates the look of a sheet coming up from the bottom. Being able to swipe down on iOS allows you to dismiss the card window."; Default Button: “Cool”, Commit: “Yes” ]
                                                                • End If
                                                                • Set Variable [ $percent; Value:,89 // Don't exceed 90% or the layout will scoll and receive the gesture before the plug-in ]
                                                                • New Window [ Style: Card; Using layout: “Blank” (swipe); Height: Get ( WindowContentHeight ) * $percent; Width: Get ( WindowContentWidth ); Top: Get ( WindowContentHeight ) - ( Get ( WindowContentHeight ) * $percent ); Left: 0; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]
                                                                • #Needed to have a nice render. Otherwise, too fast.
                                                                • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                • Go to Layout [ “Card Sheet” (swipe); Animation: Slide in from Bottom ]
                                                                • Set Variable [ $swipe; Value:EnableSwipeDown ( "Dismiss Sheet" ) ]
                                                                • Exit Script [ ]
                                                                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 Sheet]Next Script: [-]
                                                                          Script NameDismiss Sheet
                                                                          Run script with full access privilegesOff
                                                                          Include In MenuNo
                                                                          Layouts that use this script
                                                                            Scripts that use this script
                                                                              Script Definition
                                                                              Script Steps
                                                                              • #Disable the swipe gesture and close the window.
                                                                              • Set Variable [ $disable; Value:DisableSwipeGestures ]
                                                                              • Go to Layout [ “Swipe Gesture” (swipe); Animation: Slide out to Bottom ]
                                                                              • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                              • If [ Get ( WindowStyle ) = 3 ]
                                                                              • Close Window [ Current Window ]
                                                                              • 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: [Dismiss Sheet]Next Script: [Trace]
                                                                                        Script Name-
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuNo
                                                                                        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: [-]Next Script: [OnObjectSave Eval]
                                                                                                            Script NameTrace
                                                                                                            Run script with full access privilegesOff
                                                                                                            Include In MenuNo
                                                                                                            Layouts that use this script
                                                                                                              Scripts that use this script
                                                                                                                Script Definition
                                                                                                                Script Steps
                                                                                                                • #Used for MBS debugging.
                                                                                                                • Set Variable [ $trace; Value:MBS ( "Trace" ) ]
                                                                                                                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: [Trace]
                                                                                                                              Script NameOnObjectSave Eval
                                                                                                                              Run script with full access privilegesOff
                                                                                                                              Include In MenuNo
                                                                                                                              Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  • #Just a fun way to execute functions on a mobile device.
                                                                                                                                  • Set Field [ swipe::EVAL & "¶---¶" & Evaluate ( swipe::EVAL ) ]
                                                                                                                                  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

                                                                                                                                          Custom Functions

                                                                                                                                          Function NameParametersAvailabilityDefinitionIn Field DefinitionsIn Scripts
                                                                                                                                          EnableSwipeDownscriptAll accountsMBS ( "iOSApp.AddSwipeGestureRecognizer"; "Down"; Get ( FileName ) ; script ) = "OK"
                                                                                                                                            DisableSwipeGesturesAll accountsMBS ( "iOSApp.ClearSwipeGestureRecognizer" ) = "OK"

                                                                                                                                              Custom Menu Sets

                                                                                                                                              Menu SetsMenusIn ScriptsIn LayoutsComments
                                                                                                                                              [Standard FileMaker Menus]
                                                                                                                                              • All Standard Menus

                                                                                                                                              Download example: Swipe

                                                                                                                                              Used functions: