Read Only

Can I make the Calendar completely read-only.


Obviously you can do this with access privileges so that users can't edit the events table if they log in with a generic account (or open the file without logging in). While that locks down your data, that change won't be reflected in DayBack's interface: users will still be able to begin creating and editing events, those actions just won't complete.

We should be releasing an in-app update after DevCon that lets you reflect read-only access in the interface (disabling drag, hiding the delete buttons etc.)

Read-only calendars were introduced via an in-app update in version 9.71: now your startup script can set any given calendar source as read-only, meaning that you can do this conditionally based on the logged in user.

Here's how:

1. Edit the script "Load Source Settings at Startup --- Describe Your Sources Here ---"
2. There is a section in this script for each source (each calendar) you're working with. Find this comment...
"Read only - If set to true this source cannot be edited in the calendar"
...and set the next line (the SetVariable line) to True.
3. That's how you make it read only. To make it read only for only some users, wrap "True" in an If() statement that tests for the kind of use who has read only access. For example, if you have a privilege set called "Sales" that shouldn't be able to edit this calendar, replace True with this:
if ( get (CurrentPrivilegeSetName)= "Sales" ; True ; False )

Can individual events be made read only?

DayBack will respect any record-level-access restrictions you put in place in your FileMaker tables, and these can make some records read only (for certain users) while leaving others editable. However, this read-only status won't be reflected in the calendar's interface. So a user would be able to start dragging and event to a new day, for example, only to see a dialog come up letting them know they don't have rights to edit the event. In summary, record-level-access can be used to prevent users from editing some events, but those events will still look like they are editable until the user tries to save their changes.

Sharing read-only calendars

You can also share your calendar (or a filtered subset of your calendar) online with folks who don't have access to your FileMaker solution. More details here: sharing.

[email protected]
Follow us: