pui.fieldExit( minus )



This function acts like the 5250 field exit key.  It right-adjusts the field, and moves the text cursor to the next input element.

Parameter:

  • minus - optional.  If passed while in a Genie 5250 session, the value will be converted to negative, like a traditional field minus key.  (The minus parameter cannot be used in a rich display file.)

Example:

Add a button to the screen, and set the 'click' event for your button as follows:

pui.fieldExit();

Or, from a button on a Genie 5250 screen, code the following to behave like the field minus key:

pui.fieldExit(true);