Page 1 of 1

End Date for Repeating Appts

PostPosted: Tue Apr 08, 2008 8:24 am
by Guest
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

PostPosted: Sun Apr 13, 2008 8:22 am
by John Sindelar
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 ) )

PostPosted: Mon Apr 14, 2008 6:22 am
by glenbeigh
John,

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