Web Functions Overview

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.

  1. prepareSubmit
    Sets the value for the key press.
  2. pushKey
    Calls prepareSubmit
    Submits the form
  3. pushKeyCursor
    Sets a string value containing a pair of comma-separated integers representing the virtual row/column of the control with focus
    Calls pushKey
  4. pushKeyField
    Sets a string value containing the field name of the control with focus
    Calls pushKey
  5. SetFocusAtFR
    Sets string values containing the field name and the record format name of the control with focus
  6. SetFocusAt
    Sets a string value containing a pair of comma-separated integers representing the virtual row/column of the control with focus
    Calls SetFocusAtFR
  7. pushKeyFocus
    Calls SetFocusAt
    Calls pushKey

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().