Handle tab and value changes on an INPUT field
APPX 5.2 added field events for entering a field, leaving it and changing its value. Enable the events you need on the field's GUI Attributes screen.
On this page
Enable events on a field
On the field's GUI Attributes screen, set Tab In, Tab Out, or Value Changed to Y for each event you need. APPX can then respond before the user presses Enter.
Runtime
In Option Intercept, read--- OPTION and --- CURSOR AT FIELD.
- TAB IN
- The cursor entered the named field.
- TAB OUT
- The cursor left the named field.
- VALUE CHANGED
- The value changed in the named field.
- if the user changes the field and Tabs out (either manually or via auto tab). If the field also has Tab Out checked, then 2 events will fire, first the VALUE CHANGED event will fire, then the TAB OUT event will fire. If the next field has Tab In checked, then a third event will fire, TAB IN for the next field.
- If the user changes the field but does not leave the field before valueChangedTimer (in Client Preferences) has expired. For example, if valueChangedTimer is set to 300 ms and the user changes the value in the field, but does not exit the field before 300 ms have passed since they started typing in the field, the VALUE CHANGED event will fire. The timer will reset and will fire again if the user continues to change the field but does not exit before the valueChangedTimer has expired again. If the user does not make any further changes since the last time VALUE CHANGED fired and simply tabs out of the field, the event will not fire again, as they did not change the field since the last time the event fired.
Modify via ILF
You can set these attributes via ILF code. The fields are:- WIDGET SND EV FOC G - Tab In flag.
- WIDGET SND EV FOC L - Tab Out flag.
- WIDGET SND EV VAL ADJ - Value Changed flag.