Deleting an Event when multiple Event Detail Windows Open

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 30
Joined: Tue Oct 06, 2009 1:51 pm
Location: Austin, Texas
PostPosted: Tue Sep 21, 2010 8:25 pm
SeedCode Calendar Pro

If I see a potential conflict on the schedule and click to open the events in separate detail windows and I decide to delete one of the events, the next event detail window in the window stack changes to the calendar layout. It appears to have something to do with the script attached to the OnRecordLoad trigger: On Event Record Load. The Refresh Calendar subscript is acting on the next window in the stack.

My brain is pretty fried right now and I'm not coming up with a good solution. Couldn't find any references to this in the forums in my initial search but may have missed it. Thought maybe I'd broken something but replicated the behavior in a copy that hadn't been modified by me.
Hedrich Michaelsen
Austin TX
512-458-2099
Posts: 30
Joined: Tue Oct 06, 2009 1:51 pm
Location: Austin, Texas
PostPosted: Wed Sep 22, 2010 12:02 pm
After a good night's sleep came up with a passable workaround. Cannabilized steps from the "Close Window and Refresh Calendar" script that manages multiple open windows while refreshing the calendar window. It's kinda flashy-ugly but at least the next event detail window in the stack doesn't inexplicably (to the user) switch to the calendar.
Hedrich Michaelsen
Austin TX
512-458-2099
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Sep 22, 2010 12:16 pm
I'm on the road Hedrich, but I'll be taking a look at this as soon as I get in. Thanks!
John Sindelar
SeedCode
Posts: 30
Joined: Tue Oct 06, 2009 1:51 pm
Location: Austin, Texas
PostPosted: Wed Sep 22, 2010 12:19 pm
No hurry, John... Safe travels!
Hedrich Michaelsen
Austin TX
512-458-2099
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Sep 24, 2010 5:10 pm
Hi,

Here is another way to fix this. Edit the script "On Event Record Load" and find the PerformScript step. Add two lines to the script...

Add a line above this PerformScript line: add "Select Window", selecting $$sc_SolutionWindowName

And add a line below the PerformScript line that calls the script "Bring All Windows Forward ( All )" sending the script parameter, "All".

That should take care of things for you Hedrich. Enjoy.
John Sindelar
SeedCode
Posts: 30
Joined: Tue Oct 06, 2009 1:51 pm
Location: Austin, Texas
PostPosted: Fri Sep 24, 2010 6:07 pm
Thanks, John. That is pretty much the same solution I came up with...
Hedrich Michaelsen
Austin TX
512-458-2099

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: