Field manipulation methods

 

These ui.Dialog methods are used for manipulating fields during multiple input or display.  

 

They require field reference as an argument. You can refer to the necessary field/fields following these syntax options:

 

If the prefix is omitted, the method is applied to the first field in the form that matches the provided argument.

If the specified field cannot be found, a runtime error, -1373, will occur.

 

The prefix specified for the field name must match the one that is given to the field at the beginning of an interactive statement when the ui.Dialog object is bound  to the necessary dialog block.

 

 

If the screen record was specified implicitly (e.g., in an INPUT BY NAME statement), the field prefix must be

 

If a screen record is specified explicitly in the dialog FROM clause (e.g., as INPUT .. FROM screen_record.*), the prefix must match the name of the screen record given in the FROM clause.

 

Some methods - e.g., validate(), setFieldTouched(), getFieldTouched(), setFieldActive() - can take several fields as an argument ("customer_rec.*").

 

ui.Dialog.setFieldActive()

enables/disables form fields used in the current dialog (disabled fields remain visible but cannot be edited)

ui.Dialog.getFieldBuffer()

returns the input buffer of the specified field

ui.Dialog.setFieldTouched()

marks the specified field as touched (i.e. says that its value has changed during the input)

ui.Dialog.insertRow()

inserts a row to the given position of the list

ui.Dialog.appendRow()

appends a row to the end of the current list

ui.Dialog.deleteRow()

deletes a row from the specified screen array list

ui.Dialog.deleteAllRows()

removes all the rows from the DISPLAY ARRAY or INPUT ARRAY list

ui.Dialog.insertNode()

inserts a row to the given position of the list (is applied to dialogs working with a tree table)

ui.Dialog.appendNode()

add a new node within a specified parent (is applied to dialogs working with a tree table)

ui.Dialog.deleteNode()

delete the specified node together with all its child nodes (is applied to dialogs working with a tree table)

ui.Dialog.validate()

checks the values input to the form fields according to the parameters specified in INCLUDE, NOT NULL and REQUIRED field attributes

ui.Dialog.setDefaultUnbuffered()

changes the value of the UNBUFFERED attribute

ui.Dialog.setSelectionMode()

enables or disables multi-row selection

ui.Dialog.setSelectionRange()

specifies what range of rows is selected  in a multi-row selection mode

ui.Dialog.selectionToString()

passes the values of the selected rows to a tab-separated list (in a single-row selection mode, returns the currently selected row)

ui.Dialog.isRowSelected()

check whether the row is selected in a multi-row selection mode

ui.Dialog.setArrayAttributes()

sets display attributes for the specified cells of the screen array (REVERSE, UNDERLINE, BLINK, colors)

ui.Dialog.setCellAttributes()

specifies display attributes for singular dialogs within one screen array