Display Particular Date in Schedule View

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 7
Joined: Fri Nov 19, 2010 8:19 am
PostPosted: Fri Nov 19, 2010 8:26 am
How do I display a particular date?

I have integrated the calendar into a client's file. They will use it for resource scheduling, and want to see a specific date in a separate window. I can show the calendar in schedule view in the separate window OK, but it displays whatever date was last shown.

I've looked for an answer in the documentation and forum, but have not managed to find it.

Thanks John!

Barb Levine
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Nov 19, 2010 8:59 am
Hey Barb!

Not sure I'm understanding this correctly, but it sounds like you'd want two calendar windows, each showing a different date, is that right?

If so, that's not possible in our calendar as the date shown is global and is scoped to the session, not the window.

Let me know if I've misunderstood.

John
John Sindelar
SeedCode
Posts: 7
Joined: Fri Nov 19, 2010 8:19 am
PostPosted: Fri Nov 19, 2010 9:05 am
Hi John,

Sorry I didn't make it clear. I want a single calendar window, separate from the main window of the solution. The main window displays an order.

Context: This is an order-processing solution for a specialty printer that prints huge signs on vinyl etc. They want to see the order and its line items in their primary window. Each line item is assigned to a particular (school-bus sized!) printer. The printers are the resources to view in the schedule view.

So when they're looking at an order, they want to click view, and see a separate window that displays the schedule for that job's print date.

Does that help? Thanks!

Barb
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Nov 19, 2010 9:18 am
Thanks! So two issues.

Window Management. If you *always* want the calendar in a separate window, consider the "Quick Integration" here.

If not, you'll need to manage a window name variable when you call the new calendar window, as we need to know the name of the window the calendar is running it. This variable is $$sc_SolutionWindowName and we normally just set it in our Upon Opening script, but you'll want to manage it as you spawn a new calendar window.

View A Specific Date. You can load any particular date into the calendar by calling the script "Date Specific ( Date )"

Hope that helps,

John
John Sindelar
SeedCode
Posts: 7
Joined: Fri Nov 19, 2010 8:19 am
PostPosted: Fri Nov 19, 2010 9:52 am
Thanks John.

Re: window management, the Solution Window Name variable really helped. Solved other navigation problems too. Thanks for that!

But I can't get the Date Specific (Date) script to work. I'd already tried it before your suggestion. It hangs up, running Insert iCal File into Calendar (called by Refresh Calendar helper). I end up having to use command-period to stop it; a Calendar Help window is left over.

I must be missing something obvious. I tried the simple approach with the script:
- I duplicated & renamed the script
- In the duplicate, I changed the initial Set Variable $sc_Date from get(scriptParameter) to a hard coded date, as per your example in the initial comment. So I tried "12/01/2010".

Is there another way to specify the date?

Thanks so much,
Barb
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Nov 19, 2010 10:08 am
Are you running the script on a window where the calendar is showing?
John Sindelar
SeedCode
Posts: 7
Joined: Fri Nov 19, 2010 8:19 am
PostPosted: Fri Nov 19, 2010 10:14 am
Yes, the layout is Calendar No Side Menu, with the Schedule tab as default
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Nov 19, 2010 1:58 pm
You can always set CalendarRows::DateFocusGlob to the date you want and then run the refresh calendar script.
John Sindelar
SeedCode
Posts: 7
Joined: Fri Nov 19, 2010 8:19 am
PostPosted: Fri Nov 19, 2010 2:22 pm
That works! It displays the correct date! Thanks so much.

The only minor downside of this technique is that the date change is visible, regardless of the number Freeze Window steps and their locations. I.e., the new window is spawned, the schedule layout appears, the old date is visible, then the new date displays.

Thanks for all of your help here!

Barb

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: