There may be situations where you want to return control to the program by simulating a key press programmatically. This ultimately controls subsequent processing of the form. This topic provides a list of the JavaScript functions to accomplish this control.
Functions
In the list below, parameters are shown in bold/italics and refer to the hyperlink for more detail.
-
prepareSubmit- Sets the value for the key press.
-
pushKey- Calls
prepareSubmit - Submits the form
- Calls
-
pushKeyCursor- Sets a string value containing a pair of comma-separated integers representing the virtual row/column of the control with focus
- Calls
pushKey
-
pushKeyField- Sets a string value containing the field name of the control with focus
- Calls
pushKey
-
SetFocusAtFR- Sets string values containing the field name and the record format name of the control with focus
-
SetFocusAt- Sets a string value containing a pair of comma-separated integers representing the virtual row/column of the control with focus
- Calls SetFocusAtFR
-
pushKeyFocus- Calls
SetFocusAt - Calls
pushKey
- Calls
The key value referenced above can contain Enter, Print, PgUp, PgDn, Help, Clear, and F1 through F24. All parameter values are case sensitive.
In addition, two JavaScript functions are used for control
of the
shutdown
process. They are
isBrowserClosing() and
onBrowserClose().
