{{tag>category:"OpenInsight" author:"Ilde Giron" author:"Donald Bakke" author:"[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== Programmatically creating an edit table (OpenInsight) ====
=== At 29 MAY 2001 08:58:56PM Ilde Giron wrote: ===
Hi all.
I designed an edit table with colors, events, etc. But when I copy the structure of this table into another, the copy process strips all events off the new table. I may be doing something wrong but cannot find out.
The code I'm using is something like:
NewStruct=Get_Property(@window:".TABLE1", "ORIG_STRUCT")
NewStruct=TABLE2'
Newtable=Utility("CREATE" , NewStruct)
What else do I need to do?
Thanks.
----
=== At 30 MAY 2001 09:17AM Donald Bakke wrote: ===
Ilde,
Which events are being stripped out, QuickEvents or Script?
dbakke@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 31 MAY 2001 05:40PM Ilde Giron wrote: ===
Don,
"Which events are being stripped out, QuickEvents or Script?"
Scripts.
Ilde.
----
=== At 31 MAY 2001 06:00PM Donald Bakke wrote: ===
Ilde,
Script events are separate components and are named specifically to the control. Copying the control/edittable structure won't transfer the script events. You would have to copy the relevant SYSREPOSEVENTEXES records and rename them to be associated to the new edittable.
dbakke@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 01 JUN 2001 04:44AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: ===
If it's a completely new control (ie not one that's just been destroyed,modded and re-created) then you may find that you'd need to alter the Window Common variables (see the OIWIN_COMM_INIT and OIWIN_EQUATES insert record)to get the events to work, especially if you're using quick events or trying to use data bound controls.
And that is a looooooong story for another time ... :)
[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]
[i]World leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.jpg[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=6E3AB1A26E5D5B1885256A5C0005659E|View this thread on the Works forum...]]