MBS FileMaker Plugin Example Databases

Calendar

All examples are included with download of MBS FileMaker Plugin.

Calendar.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts6
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
Calendar
6 fields defined, 1 record
Calendar

Fields

Table Name: Calendar - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IDNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      BeginNormal, TimestampAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          EndNormal, TimestampAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              TitleNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  NoteNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      ColorNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German

                          Layout Objects: Calendar

                          Regular Fields

                          Field Name: Calendar::ID
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 105 pt
                          • Left: 849 pt
                          • Bottom: 126 pt
                          • Right: 1102 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: Calendar::Begin
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 128 pt
                          • Left: 849 pt
                          • Bottom: 149 pt
                          • Right: 1028 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: Calendar::End
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 151 pt
                          • Left: 849 pt
                          • Bottom: 172 pt
                          • Right: 1028 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: Calendar::Title
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 174 pt
                          • Left: 849 pt
                          • Bottom: 195 pt
                          • Right: 1102 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: Calendar::Note
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 197 pt
                          • Left: 849 pt
                          • Bottom: 218 pt
                          • Right: 1102 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: Calendar::Color
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 220 pt
                          • Left: 849 pt
                          • Bottom: 241 pt
                          • Right: 1102 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: Init Calendar
                          • Top: 66 pt
                          • Left: 979 pt
                          • Bottom: 97 pt
                          • Right: 1102 pt
                          • Anchoring: Left, Top
                          Perform Script [ “Init” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Add
                          • Top: 255 pt
                          • Left: 806 pt
                          • Bottom: 286 pt
                          • Right: 929 pt
                          • Anchoring: Left, Top
                          Perform Script [ “AddEvent” ]

                          Scripts:


                          Button PropertiesCoordinatesScript/Script Step
                            Type:
                          • Text: Set Now
                          • Top: 128 pt
                          • Left: 1035 pt
                          • Bottom: 159 pt
                          • Right: 1102 pt
                          • Anchoring: Left, Top
                          Perform Script [ “SetNow” ]

                          Scripts:


                          Web Viewer Controls

                          Web Viewer Control PropertiesCoordinatesWeb Address
                            Object Name:
                          • web
                            Additional Properties:
                          • Allow interaction with web viewer content
                          • Display progress bar
                          • Display status messages
                          • Automatically encode URL
                          • Top: 62 pt
                          • Left: 30 pt
                          • Bottom: 524 pt
                          • Right: 786 pt
                          • Anchoring: Left, Top
                          "about:blank"

                          Script Hierarchy

                          Init
                          AddEvent
                          DeleteEvent
                          MoveEvent
                          ResizeEvent
                          SetNow

                          Next Script: [AddEvent]
                          Script NameInit
                          Run script with full access privilegesOff
                          Include In MenuYes
                          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: [Init]Next Script: [DeleteEvent]
                                          Script NameAddEvent
                                          Run script with full access privilegesOff
                                          Include In MenuYes
                                          Layouts that use this script
                                          Scripts that use this script
                                            Script Definition
                                            Script Steps
                                            • Set Variable [ $begin; Value:MBS( "Time.Format"; Calendar::Begin; "%Y-%m-%d %H:%M:%S" ) ]
                                            • Set Variable [ $end; Value:MBS( "Time.Format"; Calendar::End; "%Y-%m-%d %H:%M:%S" ) ]
                                            • Set Variable [ $title; Value:Substitute ( Calendar::Title; "'"; "\'") ]
                                            • Set Variable [ $note; Value:Substitute ( Calendar::Note; "'"; "\'") ]
                                            • Set Variable [ $j; Value:"$calendar.cal( \"add\", {uid: " & Calendar::ID & ",begins: '" & $begin & "',ends: '" & $end & "',title : '" & $title & "', notes:'" & $note & "', color : '#" & Calendar::Color & "'},null )" ]
                                            • // Show Custom Dialog [ Message: $j; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                            • Set Variable [ $r; Value:MBS("WebView.RunJavaScript"; "web"; $j) ]
                                            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: [AddEvent]Next Script: [MoveEvent]
                                                    Script NameDeleteEvent
                                                    Run script with full access privilegesOff
                                                    Include In MenuYes
                                                    Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • Show Custom Dialog [ Title: "DeleteEvent"; Message: Get(ScriptParameter); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                        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: [DeleteEvent]Next Script: [ResizeEvent]
                                                                      Script NameMoveEvent
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuYes
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • // Show Custom Dialog [ Title: "MoveEvent"; Message: Get(ScriptParameter); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                          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: [MoveEvent]Next Script: [SetNow]
                                                                                        Script NameResizeEvent
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                          Scripts that use this script
                                                                                            Script Definition
                                                                                            Script Steps
                                                                                            • Show Custom Dialog [ Title: "ResizeEvent"; Message: Get(ScriptParameter); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                            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: [ResizeEvent]
                                                                                                          Script NameSetNow
                                                                                                          Run script with full access privilegesOff
                                                                                                          Include In MenuYes
                                                                                                          Layouts that use this script
                                                                                                          Scripts that use this script
                                                                                                            Script Definition
                                                                                                            Script Steps
                                                                                                            • Set Field [ Calendar::Begin; Get(CurrentTimestamp) ]
                                                                                                            • Set Field [ Calendar::End; Get(CurrentTimestamp)+3600 ]
                                                                                                            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: Calendar

                                                                                                                    Used functions:




                                                                                                                    Links
                                                                                                                    MBS Xojo Chart Plugins