Gotfocus Event for Column in Edit table ? (OpenInsight Specific)
At 08 JUN 2000 05:57:51AM Peter Kassinski wrote:
Hello,
One question about migration Arev to OI.
Edit table in my new OI Form contains associated multivalued fields.
I used pre-promt processes for some of these fields in Arev Application.
So, in OI Application I need use Gotfocus Event. But my fields are not controls in OI, control is Edit table.
What way to recognize gotfocus event for fields inside Edit table for starting my own "pre" - script.
Thanks,
Peter.
At 08 JUN 2000 08:54AM Don Bakke wrote:
Peter,
In addition to the GOTFOCUS event you will also want to use the POSCHANGED event to simulate your pre-prompt processing from AREV.
dbakke@srpcs.com
At 08 JUN 2000 08:55AM Kimberly Ruane wrote:
Peter,
Use the POSCHANGED event; it kicks in whenever your position in an edit table changes.
Inside the POSCHANGED event:
1)
Get the SELPOS property of the control
declare function get_propertywinname=ctrlentid1,'.'variable=get_property(winname:'.CONTROL_NAME','SELPOS')That will give you your position in the edit table, laid out as column,row
2)
Then do a series of if…then statements (or a case statement) based on your position in the table. For instance:
col=variableif col=2' thencall COLUMN_TWO_PROGRAMendHope this helps!
Kimberly Ruane
WinWin Solutions Inc.
At 08 JUN 2000 11:59AM Mark Glicksman wrote:
Re using the POSCHANGED event, I have found the this event doesn't trigger the first time you click on the edittable. So, in the GOTFOCUS event I issue a Send_Event "POSCHANGED".
glicks@compuserve.com
BG-Map Botanical Garden Mapping System [img]http://www.bg-map.com/bgmap.gif[/img]