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

MBS FileMaker Plugin Example Databases

Events Import

All examples are included with download of MBS FileMaker Plugin.

Events Import.fmp12

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

Fields

Table Name: Calendar Import - 11 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
                                            ExternalIDNormal, 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

                                                Field Name: Calendar Import::ExternalID
                                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                • Top: 318 pt
                                                • Left: 138 pt
                                                • Bottom: 332 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
                                                Authorize

                                                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("Events.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("Events.Item.GetTitle"; $id) ]
                                                    • Set Field [ Calendar Import::URL; MBS("Events.Item.GetURL"; $id) ]
                                                    • Set Field [ Calendar Import::UID; MBS("Events.Item.CalendarItemIdentifier"; $id) ]
                                                    • Set Field [ Calendar Import::ExternalID; MBS("Events.Item.CalendarItemExternalIdentifier"; $id) ]
                                                    • Set Field [ Calendar Import::StartDate; MBS("Events.Event.GetStartDate"; $id) ]
                                                    • Set Field [ Calendar Import::EndDate; MBS("Events.Event.GetEndDate"; $id) ]
                                                    • Set Field [ Calendar Import::AllDay; MBS("Events.Event.GetAllDay"; $id) ]
                                                    • Set Field [ Calendar Import::Location; MBS("Events.Item.GetLocation"; $id) ]
                                                    • Set Field [ Calendar Import::CalendarUID; MBS("Events.Item.GetCalendar"; $id) ]
                                                    • Set Field [ Calendar Import::CalendarName; MBS( "Events.Calendar.GetTitle"; MBS("Events.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]Next Script: [Authorize]
                                                            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

                                                                              Previous Script: [Clear]
                                                                              Script NameAuthorize
                                                                              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 [ $r; Value:MBS("Events.AuthorizationStatusForEntityType"; "Reminder") ]
                                                                                  • If [ MBS("IsError") ]
                                                                                  • Show Custom Dialog [ Title: "We have a problem"; Message: MBS("Text.RemovePrefix"; $r; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • Else If [ $r = "NotDetermined" ]
                                                                                  • Set Variable [ $r; Value:MBS( "Events.requestAccessToEntityType"; "Reminder" ) ]
                                                                                  • If [ $r = "Wait" ]
                                                                                  • #dialog is showing.
                                                                                  • Else If [ $r = "OK" ]
                                                                                  • Show Custom Dialog [ Title: "Success"; Message: "We are authorized and ready to go."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • Else
                                                                                  • Show Custom Dialog [ Title: "We have a problem"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • End If
                                                                                  • Else If [ $r = "Restricted" ]
                                                                                  • Show Custom Dialog [ Title: "Success"; Message: "We are authorized for a restricted access and ready to go."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • Else If [ $r = "Denied" ]
                                                                                  • Show Custom Dialog [ Title: "Problem"; Message: "We are denied for calendar access. Please go to system preferences and enable us."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • Else If [ $r = "Authorized" ]
                                                                                  • Show Custom Dialog [ Title: "Success"; Message: "We are authorized and ready to go."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • Else
                                                                                  • Show Custom Dialog [ Title: "We have a problem"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                  • 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: Events Import

                                                                                                Used functions: