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
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
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 … :)
World leaders in all things RevSoft