MBS FileMaker Plugin Example Databases

Calendar Import

All examples are included with download of MBS FileMaker Plugin.

Calendar Import.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
Calendar Import
10 fields defined, 0 record
Calendar Import

Fields

Table Name: Calendar Import - 10 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
TitleNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      URLNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          UIDNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              StartDateNormal, TimestampAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  EndDateNormal, TimestampAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      AllDayNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          LocationNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              NotesNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                    CalendarUIDNormal, TextAuto-Enter:
                                    • Allow editing
                                    Validation:
                                    • Only during data entry
                                    Storage:
                                    • Repetitions: 1
                                    • Indexing: None
                                    • Automatically create indexes as needed
                                    • Index Language: German
                                        CalendarNameNormal, 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 Import

                                            Regular Fields

                                            Field Name: Calendar Import::Title
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 138 pt
                                            • Left: 138 pt
                                            • Bottom: 152 pt
                                            • Right: 391 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: Calendar Import::URL
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 156 pt
                                            • Left: 138 pt
                                            • Bottom: 170 pt
                                            • Right: 391 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: Calendar Import::UID
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 174 pt
                                            • Left: 138 pt
                                            • Bottom: 188 pt
                                            • Right: 391 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: Calendar Import::StartDate
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 192 pt
                                            • Left: 138 pt
                                            • Bottom: 206 pt
                                            • Right: 379 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: Calendar Import::EndDate
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 210 pt
                                            • Left: 138 pt
                                            • Bottom: 224 pt
                                            • Right: 379 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: Calendar Import::AllDay
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 228 pt
                                            • Left: 138 pt
                                            • Bottom: 242 pt
                                            • Right: 391 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: Calendar Import::Location
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 246 pt
                                            • Left: 138 pt
                                            • Bottom: 260 pt
                                            • Right: 391 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: Calendar Import::Notes
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 264 pt
                                            • Left: 138 pt
                                            • Bottom: 278 pt
                                            • Right: 391 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: Calendar Import::CalendarUID
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 282 pt
                                            • Left: 138 pt
                                            • Bottom: 296 pt
                                            • Right: 391 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: Calendar Import::CalendarName
                                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                            • Top: 300 pt
                                            • Left: 138 pt
                                            • Bottom: 314 pt
                                            • Right: 391 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

                                            Script Hierarchy

                                            Import
                                            Clear

                                            Next Script: [Clear]
                                            Script NameImport
                                            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 ]
                                                • # find current year and search for events in current year
                                                • Set Variable [ $now; Value:Get ( CurrentTimestamp ) ]
                                                • Set Variable [ $year; Value:Year ( $now ) ]
                                                • Set Variable [ $Events; Value:MBS("Calendar.Events"; Timestamp ( Date(1; 1; $year) ; Time(0;0;0) ); Timestamp ( Date(1; 1; $year+1) ; Time(0;0;0) )) ]
                                                • # now loop to display
                                                • Set Variable [ $Count; Value:ValueCount ( $events ) ]
                                                • If [ $count > 0 ]
                                                • Set Variable [ $index; Value:1 ]
                                                • Loop
                                                • Set Variable [ $id; Value:GetValue ( $events ; $index ) ]
                                                • New Record/Request
                                                • Set Field [ Calendar Import::Title; MBS("Calendar.Item.GetTitle"; $id) ]
                                                • Set Field [ Calendar Import::URL; MBS("Calendar.Item.GetURL"; $id) ]
                                                • Set Field [ Calendar Import::UID; MBS("Calendar.Item.GetUID"; $id) ]
                                                • Set Field [ Calendar Import::StartDate; MBS("Calendar.Item.GetStartDate"; $id) ]
                                                • Set Field [ Calendar Import::EndDate; MBS("Calendar.Item.GetEndDate"; $id) ]
                                                • Set Field [ Calendar Import::AllDay; MBS("Calendar.Item.GetAllDay"; $id) ]
                                                • Set Field [ Calendar Import::Location; MBS("Calendar.Item.GetLocation"; $id) ]
                                                • Set Field [ Calendar Import::CalendarUID; MBS("Calendar.Item.GetCalendar"; $id) ]
                                                • Set Field [ Calendar Import::CalendarName; MBS( "Calendar.Calendar.GetTitle"; MBS("Calendar.Item.GetCalendar"; $id)) ]
                                                • Commit Records/Requests [ No dialog ]
                                                • Set Variable [ $index; Value:$index + 1 ]
                                                • Exit Loop If [ $index > $count ]
                                                • 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

                                                        Previous Script: [Import]
                                                        Script NameClear
                                                        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 ]
                                                            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 Import

                                                                          Used functions:




                                                                          Links
                                                                          MBS Xojo PDF Plugins