Refreshing The Calendar

When does the calendar refresh?

Editing Events

When you click on an event in the calendar, we present the event in an Event Details mini window. When you close that window we try to refresh the calendar if you've modified the record, provided you've clicked the green "check" button at the bottom of the window: if you close the window using the Close Window command or the red close button on the window frame, we simply close the window and don't attempt to refresh the calendar.
If you're interested in how this works, we're recording the modification state of the record when the window is opened (and this supports having multiple Event Detail windows open at once). Then when you click our blue button to close the window we're checking the modification count and refreshing the calendar if the event was modified.
If you'd like to add some additional behaviors to the process of editing an event, add them to the script "Close Window & Refresh Calendar" before the comment "Commit Record". (Changes made later in the script may be happening on the wrong record as our Dependency Chain scripts may have moved us to another record.)

The refresh button

You'll see a "refresh" button in the calendar header to the right of the arrows that move to the next day/week/month. This button is there in case you'd like to manually ask the server if there are any new events to display. The calendar caches the events it draws and doesn't continually ask the server for new events: this is one reason the calendar is so much faster than traditional FileMaker calendars.
This means, however, that edits and new event records won't just show up on your calendar without any interaction on your part. Normally this isn't a big deal as the calendar requests new events from the server each time you edit a record, filter the calendar, or switch views. But if you're just staring at your screen, you may want to click "refresh" to make sure you have the latest data from the server.
Note that while this doesn't sound very "FileMaker like", most complicated screens (and certainly most traditional calendars) don't "refresh" automatically either, since the relationships they use for display are too "deep" to respond to notifications of new or edited records from the server.

Refreshing when arriving at the calendar layout

The calendar layouts have a script trigger assigned to them which will refresh the calendar each time you arrive at the calendar layout.

Refreshing on a timer

You may want to set the calendar to refresh every few seconds so you can mount a big version in a public space to coordinate schedules. You can see some examples of this here and learn how to automate that refresh in this blog post.
Follow us: