In OI3.6.1
My development SYSREPOSEVENTEXES file got a GFE, couldn't recover it
and had to recreate the file. Now most of my SYSREPOSEVENTS in all my
Forms have to be recompiled (the only way I know how) by going in to
Form Designer, opening each objects script, editing it, and recompiling the form. This is shoot and miss process trying to make sure each object's script is "edited". Is there any way I can compile
all SYSREPOSEVENTS at one time so that my SYSREPOSEVENTEXES is current?
Thanks as always..
Steve C.
Steve,
I thought a "tree compile" (main window - Entity | Compile) would recompile all scripts too. The docs say "Check this box in the Compile Entity window when you want to compile an entity and all entities upon which it is dependent. Such entities would include the controls in an OpenInsight form."
But you would still have to do one window at a time if you use Entity | Compile.
Cameron published a RecompileWindows function in a posting this spring (Subject: Re: Multi-Module Application; Category: OpenInsight Specific; Author: Cameron Revelation; Date: 01/01/98). His RecompileWindows function recompiles all windows. But I am not 100% sure if it does a tree compile. Each compile in RecompileWindows is done with a Repository("COMPILE", EntID, TRUE$, TRUE$). I think perhaps one of the boolean parameters has to do with tree compiling or not.
- Oystein -
Steve,
After making a back-up…
First, clear the table. Since it is a SYS table you have to alias it first (or write a 3 line program that does a CLEARFILE against it).
Second, copy in the rows that are installed with OI. To do this, install a clean OI (temp copy of course) and alias its SYSREPOSEVENTEXES table and copy all of the rows.
Third, compile your events. You can loop through the SYSREPOS keys and compile all those that start with "*OIEVENT*" and issue a COMPILE against them. (You could also use Get_Repos_Entities or whatever it is but I can type out a select..readnext loop must faster
![]()
Cameron Purdy
Revelation Software
Thanks again Oystein and Cameron. I'll give that a try.
I'll start making weekly copies of these files.
Steve C.