Page 1 of 1

Repeating events with conditions

PostPosted: Mon Aug 23, 2010 5:39 pm
by dzakary
When creating an repeating event, my client often has events that have specific conditions. For example, repeats every 90 days, but if the repeat falls on a weekend it must back up to the previous business day - for example if it falls on a Saturday or Sunday drop back to the Friday. But the next repetition must be on the original 90 day increment (assuming it isn't on a weekend too).

Thoughts on the best way to accomplish this?

PostPosted: Tue Aug 24, 2010 6:27 am
by John Sindelar
Sounds good.

You'll need to add logic for this within the repeat script itself.

The script that actually makes the events is "Create events from repeat list ( DateList )" and you'll see that it is pretty simple. After we set the date of the event in this script you can add logic to test for that date being a weekend, and adjust the date as necessary.

Hope that helps,

John