Detection of focus changes
Describes how to detect when the focus goes from field to field or to a read-only list.
Detecting focus changes in a singular INPUT or CONSTRUCT
An singular INPUT
or CONSTRUCT
controls several fields that can
get the focus and become current. In order to execute some code when a field gets (or loses) the
focus, use the following control blocks:
BEFORE FIELD
(a specific field (or group of fields) gets the focus)AFTER FIELD
(the field (or group of fields) loses focus)
Detecting focus changes in a singular DISPLAY ARRAY
A singular DISPLAY ARRAY
controls rows of a list, that can get the focus and
become current. In order to execute some code when a row gets (or loses) the focus,
use the following control blocks:
BEFORE ROW
(a new row gets the focus inside aDISPLAY ARRAY
orINPUT ARRAY
list)AFTER ROW
(a row inside aDISPLAY ARRAY
orINPUT ARRAY
list loses focus)
Detecting focus changes in a singular INPUT ARRAY
An singular INPUT ARRAY
controls several fields and rows of a list, that can get
the focus and become current. In order to execute some code when a field or a row gets (or loses)
the focus, use the following control blocks:
BEFORE ROW
(a new row gets the focus inside aDISPLAY ARRAY
orINPUT ARRAY
list)BEFORE FIELD
(a specific field (or group of fields) gets the focus)AFTER FIELD
(the field (or group of fields) loses focus)AFTER ROW
(a row inside aDISPLAY ARRAY
orINPUT ARRAY
list loses focus)
Detecting focus changes in a DIALOG
A DIALOG
interaction block can handle different parts of a form
simultaneously. In order to execute some code when a part of the form gets (or
loses) the focus, use the following control blocks:
BEFORE INPUT
(a field of thisINPUT
orINPUT ARRAY
sub-dialog gets the focus and none of its fields had focus before)BEFORE CONSTRUCT
(a field of thisCONSTRUCT
sub-dialog gets the focus and none of its fields had focus before)BEFORE DISPLAY
(thisDISPLAY ARRAY
sub-dialog gets the focus and none of its fields had focus before)BEFORE ROW
(a new row gets the focus inside aDISPLAY ARRAY
orINPUT ARRAY
list)BEFORE FIELD
(a specific field (or group of fields) gets the focus)AFTER FIELD
(the field (or group of fields) loses focus)AFTER ROW
(a row inside aDISPLAY ARRAY
orINPUT ARRAY
list loses focus)AFTER DISPLAY
(thisDISPLAY ARRAY
sub-dialog loses the focus = focus goes to another sub-dialog)AFTER CONSTRUCT
(thisCONSTRUCT
sub-dialog loses the focus = focus goes to another sub-dialog)AFTER INPUT
(thisINPUT
orINPUT ARRAY
sub-dialog loses focus = focus goes to another sub-dialog)
These triggers are also executed by NEXT FIELD
.