SeedCode Calendar Free Script

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 2
Joined: Mon Jan 28, 2008 1:34 pm
PostPosted: Mon Jan 28, 2008 1:47 pm
Hello, I am trying to figure out how to modify a duplicate of the script:

Move Date Left or Right ( Target ) { Direction }

So that it only goes to the next day without having to click a button. I cannot figure out how to modify the values for Target and Direction to cause the script to just simply go to the next day.

I am writing a script that will automatically create 16 records for each day.
I've written the script to create the 16 records and enter data but I need to loop to the next day, then the next.... for the next couple of years and certainly don't want to do in manually.

I need to create the 16 records as each row represents a cabin. It is a reservation calendar for a resort.

I hope this makes sense. Thanks in advance for your help!
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Jan 28, 2008 2:11 pm
Hi. Most of the script you mentioned is about "drawing" the day (making sure the week and filters are set, etc.). If you just need to switch the focus of the calendar to another day in your script, simply set the field Filters::CalFilterDateGlob to the day you're interested in.

When you're done, call the script "Move Date Left or Right ( Target ) { Direction }" with the parameter "Target = Today" to refresh the display.

Hope that helps.
John Sindelar
SeedCode
Posts: 2
Joined: Mon Jan 28, 2008 1:34 pm
PostPosted: Mon Jan 28, 2008 2:49 pm
Thanks I got it to work.

What the script now does is create the 16 records then set CalFilterDateGlob +1 which put me in the next day. Then runs the script "Move Date Left or Right ( Target ) { Direction } " and it works perfect. The loop this and I'm set until 2020.

Thanks!
Susan

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 1 guest

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