Issue with monthly repeating events

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 11
Joined: Wed Jul 17, 2013 1:35 pm
PostPosted: Fri Aug 23, 2013 9:35 am
We are running Calendar 5.6.2 and have encountered an issue with monthly repeating events.

If you open the Event Details layout to create a new event, click the "repeat" button, then the "Monthly" tab, enter the repeat period (e.g. 6 months), choose a start date (e.g. the 1st), stop after the desired number of repetitions or stop date and click "continue" you get a monthly repeating event. In fact no matter what number you put in the repeat-every-x-months field you get an every-month-repeat (although the correct number of events). However if you use the option of "On the 1st, 2nd, 3rd, etc / Monday, Tuesday, Wednesday etc" option then it recognizes the every-x-months number and you get your 6-monthly or whatever was chosen event gap.

Can anybody else replicate this issue or am I doing something wrong?

Thanks.
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Mon Aug 26, 2013 12:32 pm
I think you're onto something here. I just tried this myself and saw the same result. In fact the same thing happens in the FM 12 version of the calendar. We'll come up with a fix and post that ASAP. Thanks for reporting this!
Posts: 11
Joined: Wed Jul 17, 2013 1:35 pm
PostPosted: Mon Aug 26, 2013 1:25 pm
Thanks for the confirmation - it's good to know I'm not going crazy, well at least not crazy due to Calendar!
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Tue Aug 27, 2013 9:52 am
Here's how you can fix this behavior in your file. In the "Build Repetition List ( Repeat_StartDate ; Repeat_Rule )" script, you need to adjust two Set Variable calculations. I'm attaching screen shots to show you where all of this needs to happen and what it needs to look like. I'm also pasting the code for one of the edits so you can just copy/paste it into your file:

// Need to account for possibility of month advancement going too far, i.e. 11/31/2011 = 12/1/2011
Let ( [
dt = $sc_Repeat_NextDate;
i = $sc_UseInterval ;
mnth = Month ( dt ) ;
dy = Day ( dt ) ;
yr = Year ( dt ) ;
newdate = Date ( mnth + i ; dy ; yr ) ;
newmnth = Month ( newdate ) ;
newyr = Year ( newdate ) ;
newmnthyr = If ( ( newyr > yr ) ; newmnth + 12 ; newmnth ) ; //adjust month if spanning new year
dy = If ( ( newmnthyr - mnth ) > i; 0 ; dy ) //If we've gone too far then set dy to 0 for last day of previous month.
] ;
Date ( newmnth ; dy ; newyr )
) ;
Attachments
default-3.png
default-3.png (119.22 KiB) Viewed 15049 times
default-2.png
default-2.png (142.2 KiB) Viewed 15049 times
default-1.png
default-1.png (144.11 KiB) Viewed 15049 times
default.png
default.png (71.69 KiB) Viewed 15049 times
Posts: 11
Joined: Wed Jul 17, 2013 1:35 pm
PostPosted: Tue Aug 27, 2013 4:08 pm
Thank you for the quick reply but unfortunately we're not quite there yet.

I located the script and first variable edit (the one with the large copy-and-paste change) with no problem and made the update. However the second edit you specified in the same script already had

If ( n= 1 ; 0 ; 1 ) // If ( n= 1 ; 0 ; $sc_UseInterval )
for
$sc_ThisBYMONTHDAY
so there was no change to be made.

This is for the FMP 11 version. The single edit I made did not fix the problem, most likely because I was not able to make the second edit. Did you perhaps make a different second edit?

Thanks.
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Wed Aug 28, 2013 6:26 pm
I'm VERY sorry. The mistake was that my second instruction wasn't clear at all. You need to DELETE the code you see highlighted in that screenshot, so the Set Variable value should look like this new screen shot. Give that a try and let me know if it works.
Attachments
Screen Shot 2013-08-28 at 8.21.01 PM.png
Screen Shot 2013-08-28 at 8.21.01 PM.png (86.96 KiB) Viewed 15039 times
Posts: 11
Joined: Wed Jul 17, 2013 1:35 pm
PostPosted: Thu Aug 29, 2013 1:31 pm
Success!

Yes, I was confused by your instruction for the second edit but the clarification helped and we can now create multiple events at n-monthly intervals.

Many thanks for your help.
SeedCode Staff
SeedCode Staff
Posts: 475
Joined: Wed Jan 02, 2013 11:47 am
PostPosted: Thu Aug 29, 2013 2:17 pm
Awesome. That's great to hear. Thanks for the feedback. :)

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

cron
(855) SEEDCODE
[email protected]
Follow us: