End Date for Repeating Appts

Support for our integrated Contact Manager, Calendar, and Project Tracker.
PostPosted: Tue Apr 08, 2008 8:24 am
Hello,

I'm customizing SeedCode Pro Complete 1.32 for my organization. I'm very pleased with SeedCode. What a great template!

Quick question regarding repeating appointments... When I set a DAILY repeating appointment, the last appt is on the "stop on" date. But when I set a MONTHLY or WEEKLY appt, the "stop on" date is not included.

For example, if I repeat an April 2, 2008 appt every day, stopping on April 30, 2008, there is an appt on Wednesday April 30. But if I repeat an April 2, 2008 appt every Wednesday, stopping on April 30, 2008, there is no appt on Wednesday April 30.

Might there be an easy way to always make the "stop on" date inclusive?

Thank you,
Michael Griffin
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Apr 13, 2008 8:22 am
Hi there,

Turns out this is pretty easy to change. In the script "Create Repetitions" you'll see a comment titled "Establish Next Date" then one titled "Create Record". Edit the script step right *before* the "Create Record" comment and change the last line of the calc to use > instead of ≥. So it looks like this:
Code: Select all
Choose ( CalendarDaily::CalRepeatStopOptionGlob ;
"" ;
CalendarDaily::CalRepeatStopOnNumberGlob = 0 ;
CalendarDaily::CalRepeatDateGlob > GetAsDate ( CalendarDaily::CalRepeatStopOnDateGlob ) )
John Sindelar
SeedCode
Posts: 1
Joined: Mon Apr 14, 2008 6:10 am
PostPosted: Mon Apr 14, 2008 6:22 am
John,

Perfect. That is exactly what I was looking for. Thanks for the elegant solution.

Return to SeedCode Calendar

Who is online

Users browsing this forum: Google [Bot] and 4 guests

(855) SEEDCODE
[email protected]
Follow us: