Page 1 of 1

bug in deleting events

PostPosted: Fri Oct 12, 2012 6:56 am
by dunumba
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

Re: bug in deleting events

PostPosted: Fri Oct 12, 2012 7:30 am
by JasonYoung
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 6141 times


Please let us know if that helps.
-Jason

Re: bug in deleting events

PostPosted: Fri Oct 12, 2012 8:10 am
by dunumba
Thanks, Jason. The script is OK and nothing is broken, but the problem persists

Re: bug in deleting events

PostPosted: Fri Oct 12, 2012 11:26 am
by JasonYoung
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 6137 times


Let me know if that helps,
-Jason

Re: bug in deleting events

PostPosted: Sat Oct 13, 2012 1:06 pm
by dunumba
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!!

Re: bug in deleting events

PostPosted: Sun Oct 14, 2012 8:15 am
by John Sindelar
Sure thing Damian, we should probably get a copy of you files. I'll email you instructions for sending them to us.

- John

Re: bug in deleting events

PostPosted: Sun Oct 14, 2012 1:30 pm
by dunumba
thanks, John, I can't solve this problem, please, email me to [email protected], thanks

Re: bug in deleting events

PostPosted: Mon Oct 15, 2012 7:38 am
by John Sindelar
Will do. Emailed you at barnetik.com the other day.