Sort Order of Rows in Month View

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 8
Joined: Wed Jun 09, 2010 7:51 am
PostPosted: Sun Aug 01, 2010 11:55 am
Hi,

Is there a way I can have the events in the Month view sorted by Resource (or a separate Sort Field I create) and then Chronological order, have searched throughout the database, but I must confess the inner workings of this area leave me totally confused (to say the least!).

Many thanks

Crispin
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Aug 01, 2010 12:54 pm
The sort is controlled in the script called "Sort FileMaker Records --- Edit Sort Orders Here ---". This is one of the two configuration scripts you visit when you integrate the calendar with your work.

But I'm not sure you'll be able to do this. Events have to be sorted by chronological order first in order for us to write the calendar. AFTER the chronological sort, you add any criteria you'd like (I'd make sure that you're sorting on indexed fields unless you want to see a real performance hit).

So if you don't have times for your events, then just adding a Resource sort after the date/time sort that is there should work great: for all events of the same date they'd sort by resource.

But if you do have times then I'm afraid that won't work since it will sort by date/time first and only events with the same time will be sorted by Resource.

You could try branching this sort script so that you leave out the time when sorting on the Month view. The If() test would be $$sc_Mode = Month

Then you could have the month just sort by Date then Resource, having all other views sort by Date/Time. Don't know if that will work for you, but it's worth a try.
Last edited by John Sindelar on Tue Aug 03, 2010 2:56 pm, edited 1 time in total.
John Sindelar
SeedCode
Posts: 8
Joined: Wed Jun 09, 2010 7:51 am
PostPosted: Tue Aug 03, 2010 1:02 pm
Many thanks John, will give this a try...

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: