UNBUFFERED attribute
The UNBUFFERED
attribute makes the INPUT
dialog
automatically synchronize the form fields with the corresponding program variable, simplifying form
field values changed programmatically during INPUT
execution.
By default, field values go through an input buffer before they get synchronized with the program
variable. To display a new field value during an INPUT
, the program variable must
be set and then a DISPLAY BY NAME
must be performed to synchronize the form field
and display the new value to the user. Similarly, when executing an action, the current field value
is not assigned to the program variable and needs to be retrieved from the form field buffer with
the DIALOG.getFieldBuffer
method.
When using the UNBUFFERED
attribute during INPUT
, the dialog
automatically sets the form field values with the corresponding program variable values, and when an
action is triggered, the current field value is automatically assigned to the program variable.
Using the UNBUFFERED
attribute is strongly recommended.