stall when no items in one of two sources

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 60
Joined: Wed Jun 23, 2010 9:21 pm
PostPosted: Thu May 12, 2011 7:03 pm
i have two sources being displayed, however, when one source has no records for a particular day (in day view), but items in the other, the entire calendar stalls when I go to that day.

Command-. 'fixes' it, but was wondering if there is a workaround.
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Fri May 13, 2011 7:17 am
Hi Eugene,

I think might be an issue with certain variables not getting initialized before the loops run. We've corrected this in our current build, but I think you might have the one before.

In the script:

Insert iCal File Into Calendar { UseExistingData } inder the comments #Read all sources to get started

Make sure the variables: $sc_CountWritten[$sc_SourceNo] ; $sc_CountEvents[$sc_SourceNo] and $sc_count[$sc_sourceNo] are all getting initialized as per the attached image under the comments #source is active and #source is inactive. If they're not, it can cause certain loops to get stuck.

Insert iCal File Into Calendar.png
Insert iCal File Into Calendar.png (163.6 KiB) Viewed 8180 times



Let me know if I'm close on that one as well,
-Jason
Posts: 60
Joined: Wed Jun 23, 2010 9:21 pm
PostPosted: Fri May 13, 2011 2:54 pm
Hi Jason,

Thanks much, that was it. In both #source is active and #source is inactive forks, the $sc_CountWritten var wasn't being set to 0. I'm pretty sure I didn't touch that part of the script, is this a change from previous builds?

Nevertheless, thanks again.
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Fri May 13, 2011 3:03 pm
Hi Eugene,

It is a change. This was corrected in Calendar 2.2.

Thanks!

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: