Hi,
I am trying to see if there is a way to block repeats on certain days. Lets say I want to keep track of when a business is closed. Then I want to create records that repeat for the whole year, but not on the closed days. How can this be done?
Oreste
Prevent repeats.
2 posts
• Page 1 of 1
Posts: 65
Joined: Wed Dec 16, 2009 9:04 am |
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Two methods...
1. Create the repeats as usual and then loop through them, testing each for whatever conflict you're interested in. The script "Continue Repeating Events Window - Make Events " contains a branch that can be turned on (it ships turned off) to take users to the list of repeating events as soon as they're created. You may want to turn this on so you can leave users in a list of successful repeats or show them the conflicting / offending ones. 2. You can put the test for conflict, etc. IN the create repetition script itself. Edit the script "Create events from repeat list ( DateList )" and put your test right before the Exit Loop If statement: simply delete the newly duplicated record if your test fails. Hope that helps, John John Sindelar
SeedCode |
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests