Automatically filter the Month View?

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 18
Joined: Sat Feb 21, 2009 3:30 pm
PostPosted: Sun Jan 02, 2011 10:00 am
I have found that the month view can get a bit sluggish when displaying a large set of records. My users are just fine with the idea of automatically filtering out events with a specific status ("open") from the month view. I have found the global variable "$$sc_Mode" and the script "Apply Filter to Found Set" and figure that I can leverage this to get the results I'm looking for. Here's what I have tried thus far. It works just as expected when I'm modifying an existing filter, but when I'm working with no existing filter (the second highlighted section in the image), my additional omit requests don't seem to have an effect. Is there someplace else where an empty $$sc_FilterCriteria might cause an issue?

Image
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Jan 02, 2011 11:47 am
Nicely done. But if you want to use "filters" you'll need to also set $$sc_FilterCriteria variable. I'd set this at the beginning of the script and then let the looping Find run as is, instead of adding your criteria afterwards.
John Sindelar
SeedCode
Posts: 18
Joined: Sat Feb 21, 2009 3:30 pm
PostPosted: Sun Jan 02, 2011 3:36 pm
John,

Thanks for the push in the right direction. After a bit of experimentation, I ended up tying the filter modification to the script "Go to Calendar Tab ( Tab Name )" instead. This allows the end user to modify the filter after navigation, but keeps them from getting stuck with a very slow screen redraw. I may need to add some code to set the user accessible filter fields so the UI isn't quite so wonky, but the behavior is very close to what I'm after. Here's where I ended up.

- Charlie Bailey

Image
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Jan 02, 2011 4:06 pm
Nice. Hey, what do you use for screen caps / annotation? I've been using Skitch (http://skitch.com/) but have been thinking about Jing (http://www.techsmith.com/jing) but can't get it to install properly.
John Sindelar
SeedCode
Posts: 18
Joined: Sat Feb 21, 2009 3:30 pm
PostPosted: Sun Jan 02, 2011 6:04 pm
I use Snapz Pro for daily stuff like screen shots of scripts or graphs (mostly out of habit) so I don't have to print, but as soon as I need to share I use Skitch because it's just so easy. I recently switched to the paid version (Skitch Plus), not so much because the paid features are better, but because I wanted to support the project. Now if they'll just add movie capture...

Return to SeedCode Calendar

Who is online

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

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