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?
Repeating events with conditions
2 posts
• Page 1 of 1
Posts: 50
Joined: Mon Dec 21, 2009 8:45 am |
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
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 John Sindelar
SeedCode |
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests