Page 1 of 1

All day events

PostPosted: Mon Aug 23, 2010 5:36 pm
by dzakary
My current installation of SCP will only involve all day events.

What is the best way so that when an event is created it is always an all day event?

We'll likely only use week and month views. In the week view you can drag the divider bar between displaying all day events and the time scale. Can this be set and locked so that it always displays the full day events only?

PostPosted: Tue Aug 24, 2010 6:25 am
by John Sindelar
You can change the number of rows showing for all day events in the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---".

You'll see a comment "How many rows should be used to show All-Day events on Day, Week, and Schedule screens?" and can set the following value to the number of rows in the calendar--currently 36-- or to one less than that (you'll have to see which works best for you).

More useful may be to change the setting a bit further down in the same script: to only "Use Simple Views". These views don't try to place an event at a certain time and are faster than our other views.

Run the "Upon Opening" script after any changes to the configuration script to see your changes take effect.

As far as preventing times being entered, I'd just remove the time start and time end fields from the Event Detail layout.

PostPosted: Tue Aug 24, 2010 6:30 am
by John Sindelar
By the way, if you really only have all day events, you can speed things up a bit by removing our code that searches for timestamp ranges (I'd actually just disable it, in case you client changes their mind).

You can find this in the script "Write FileMaker Source to Variable". Disable everything from the comment "Timed Events (search using timestamps)" to the comment "Find". If you don't have FileMaker Advanced you can disable this by wrapping it all in an IF statement like if ( 1=0 ).

PostPosted: Tue Aug 24, 2010 7:55 am
by dzakary
Thanks John. Will give that a shot today.