Forms Housekeeping - Deleting Forms and Related Events (OpenInsight Specific)
At 08 OCT 2000 10:33:13PM [email protected] wrote:
To all,
A couple of simple questions:
Question 1:
I have a form. The controls on that forms have events attached to it. I assumed that if I delete the form (via Entity-Delete-etc) that those EVENTS would be automatically removed from the system (i.e. Sysreposevents or whatever). However, when I looked, I still see the events for the form. Is this correct? Am I suppose to remove those events myself? Or is there another way of automatically deleting forms and their related events from the system?
Question 2:
When I do a Save-as for a form, I found that it save everything to the "new" form except for Scripts in the Event Handler. I saw a message displayed, but didn't really read it . Okay okay. Anyway, is this proper behavior for OI or did I miss something?
I will post this on the otherside as well.
Thanks a bunch.
[email protected] onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 08 OCT 2000 11:48PM Donald Bakke wrote:
Ray,
1. OI is supposed to remove all related events. Sometimes, however, it doesn't (as you discovered.) You should run the SCAN_REP window/utility to assist you in cleaning up orphaned events.
2. OI is supposed to copy all event handlers when you do a Save-As. I imagine the message you overlooked was some nasty message saying that the entire system is riddled with GFE's and there was no way in the world you were going to get these event scripts transferred. Or a close approximation at least…
At 09 OCT 2000 01:17AM [email protected] wrote:
Don,
1. OI is supposed to remove all related events. Sometimes, however, it doesn't (as you discovered.) You should run the SCAN_REP window/utility to assist you in cleaning up orphaned events.
Wow-wee, another niffty toy! I run Scan_rep and it found items that were 1) Ophan; 2) Orphan?; 3) No Body; and 4) Bad Types. I don't recognize all the entries. I guess what I'm asking is is SCAN_REP reliable and if it's listed there does it mean it's safe to delete those items. I think the answer is "yes", but I thought that I would check first .
2. OI is supposed to copy all event handlers when you do a Save-As. I imagine the message you overlooked was some nasty message saying that the entire system is riddled with GFE's and there was no way in the world you were going to get these event scripts transferred. Or a close approximation at least…
Well to be honest, I don't recollect seeing anything regarding a GFE or anything serious. I saw this big long list in a message come up which startled me a bit "like old man what is this" and then I hit OK . Well it's good to know that the "Save-AS" for a form is supposed to save all items in the Event Handler.
Thanks again,
Ray
[email protected] onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 13 OCT 2000 12:42AM Richard Bright wrote:
Ray,
I assume that you are using 'Tree Delete' when you delete a form, and also do this with the executable + tree-delete (This takes out both compiled and source). Often one forgets to do the tree delete (to get rid of dependant events) - thus the SCAN_REP cleans this up. My experience is that you need to do both a SCAN and re-index before any RDK stuff else smething is missed. After I got into this habit the system stays clean and healthy.
BTW some orphan items were created by one of the OI Updates (at one time or other) because it failed to clean up obsolete entities. This has been fixed in later versions - all the reason to get up to latest version.
Richard Bright
At 13 OCT 2000 11:41AM [email protected] wrote:
Richard,
I assume that you are using 'Tree Delete' when you delete a form, and also do this with the executable + tree-delete (This takes out both compiled and source). Often one forgets to do the tree delete (to get rid of dependant events) - thus the SCAN_REP cleans this up.
I wish I could say thanks for the reminder. Instead I must say thanks for the tip. I will use the "Tree Delete" from now on
![]()
My experience is that you need to do both a SCAN and re-index before any RDK stuff else smething is missed. After I got into this habit the system stays clean and healthy.
Ahh so the SCAN utility is safe to use . Appreciate the feedback.
BTW some orphan items were created by one of the OI Updates (at one time or other) because it failed to clean up obsolete entities. This has been fixed in later versions - all the reason to get up to latest version
I am using 3.73, which is the latest. Of course, I was looking forward to 3.8, but now with the collaborative works and the absence of key developers, 3.73 may be it ;-(
[email protected] onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info