[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== How to Know "next Gotfocus" from current Lostfocus. (OpenInsight Specific) ====
=== At 10 MAR 1999 03:29:14PM Steve C. wrote: ===
{{tag>"OpenInsight Specific"}}
I have a script in an edit line Lostfocus event that calls a SSP.
When I click on another control I fire the Lostfocus. Within the
SSP can I tell, and how, which control I hit and will get the
Gotfocus...that caused the Lostfocus... got that????
Thanks...
Steve C.
----
=== At 10 MAR 1999 04:15PM Greg James, ISIS, Inc. wrote: ===
One of the values passed in the LOSTFOCUS event is FocusID. I have passed this 'param' to stored procedures to do what you are talking about. Similarly, PrevFocusID is passed in the GOTFOCUS event. Between the two you know where focus was and/or where it is going to.
If you don't want to use the values passed in the aforementioned events, you can use:
PrevFocusID=Get_Property('SYSTEM','PREVFOCUS')
(for GOTFOCUS)
and
FocusID=Get_Property('SYSTEM','FOCUS')
(for LOSTFOCUS)
I suspect, but I'm not sure, that the events get the PrevFocusID and FocusID values from the system.
----
=== At 10 MAR 1999 04:24PM Steve C. wrote: ===
Greg,
Thanks.. FocusID=Get_Property('SYSTEM','FOCUS') is just
what I needed in my Lostfocus event.
.
.
Steve C.
----
=== At 17 JAN 2002 10:03AM Bob Watson wrote: ===
The lostfocus event passes the focus ID to the procedural event and the quickevent. You don't need to use system, gotfocus to get it. Use '@param1' in the quickevent to pass it on to your procedure.
Bob Watson
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=573676D7A197F6388525673000708A73|View this thread on the forum...]]