bug in deleting events

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am
PostPosted: Fri Oct 12, 2012 6:56 am
Hi, when I delete an event clicking on the "Delete" button in EventsDetails layout, all the data are deleted, but the window doesn't close and the summary is displayed on the calendar
How can I solve this bug?
Thanks, Damian
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Fri Oct 12, 2012 7:30 am
Hi Damian,

There should be a layout based script trigger on the Event Detail layout that should handle this (On Event Record Load : OnRecordLoad), so I would check if that's set-up and nothing is broken in the script itself.

Trigger.png
Trigger.png (189.02 KiB) Viewed 4791 times


Please let us know if that helps.
-Jason
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am
PostPosted: Fri Oct 12, 2012 8:10 am
Thanks, Jason. The script is OK and nothing is broken, but the problem persists
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Fri Oct 12, 2012 11:26 am
Hmmm.

Not sure why it's not working. When you open the window form the calendar, there should just be one record in the found set, so when you close the window this should be true

IF [Get ( FoundCount ) = 0 and ValueCount ( WindowNames ( Get (FileName ) ) ) > 1 and Get ( TotalRecordCount ) > 0]

and run the part of the script that closes the window and runs the refresh. The thing I can think of is that if you only have one event and are deleting the last one, then that part won't run.

If you have Advanced, can you check this script with the debugger to see what's not happening?

Script.png
Script.png (151.85 KiB) Viewed 4787 times


Let me know if that helps,
-Jason
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am
PostPosted: Sat Oct 13, 2012 1:06 pm
Hi, the script is OK, I checked it with the debugger and there is no problem, but the problem persists:
when I delete an event clicking on the "Delete" button in EventsDetails layout, all the data are deleted, but the window doesn't close and the summary is displayed on the calendar.
If I click on the refresh button, all the events disappear!!
Can I send you a copy of my solution? Thanks!!
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Oct 14, 2012 8:15 am
Sure thing Damian, we should probably get a copy of you files. I'll email you instructions for sending them to us.

- John
John Sindelar
SeedCode
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am
PostPosted: Sun Oct 14, 2012 1:30 pm
thanks, John, I can't solve this problem, please, email me to [email protected], thanks
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Oct 15, 2012 7:38 am
Will do. Emailed you at barnetik.com the other day.
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

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