function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James@KronosLabJames@KronosLab 

Setting up a filterable calendar

I'm developing an application where I would like to be able to relate events to a custom object and use the calendar UI to view them.
 
In other words, let's say I have a Vehicle customer object.  I create an event for each time the vehicle is on the road.  Now I'd like to be able to view all the trips for any one vehicle on a calendar.
 
I can't do it with the standard "Home" calendar because you can't filter the calendar views on a related field.  You can filter the list view, but not the calendar view.
 
I thought an alternative might be to automatically create a public calendar for each vehicle using a trigger, and then put the events for each vehicle on it's own calendar, but I don't think you can create public calendars via Apex, nor can I find how you add events to public calendars programatically.
 
Any ideas?
 
James