ui.Dialog methods

Methods of the ui.Dialog class.

Table 1. Class methods
Name Description
ui.Dialog.getCurrent()
  RETURNING result ui.Dialog
Returns the current dialog object.
ui.Dialog.setDefaultUnbuffered(
   value BOOLEAN )
Set the default unbuffered mode for all dialogs.
Table 2. Object methods
Name Description
accept()
Validates and terminates the dialog.
validate(
   field-list STRING )
  RETURNING result INTEGER
Check form level validation rules.
appendRow(
   name STRING )
Appends a new row in the specified list.
appendNode(
   name STRING,
   index INTEGER )
Appends a new node in the specified tree-view.
deleteRow(
   name STRING,
   index INTEGER )
Deletes a row from the specified list.
deleteNode(
   name STRING,
   index INTEGER )
Deletes a node from the specified tree-view.
deleteAllRows(
   name STRING )
Deletes all rows from the specified list.
getArrayLength(
   name STRING )
  RETURNING result INTEGER
Returns the total number of rows in the specified list.
getCurrentItem()
  RETURNING result STRING
Returns the current item having focus.
getCurrentRow(
   name STRING )
  RETURNING result INTEGER
Returns the current row of the specified list.
getFieldBuffer(
   field STRING )
  RETURNING result STRING
Returns the input buffer of the specified field.
getFieldTouched(
   field-list STRING )
  RETURNING result BOOLEAN
Returns the modification flag for a field.
getForm()
  RETURNING result ui.Form
Returns the current form used by the dialog.
insertRow(
   name STRING,
   index INTEGER )
Inserts a new row in the specified list.
insertNode(
   name STRING,
   index INTEGER )
Inserts a new node in the specified tree.
isRowSelected(
   name STRING,
   index INTEGER )
  RETURNING result BOOLEAN
Queries row selection for a give list and row.
nextField(
   name STRING )
Registering the next field to jump to.
selectionToString(
   name STRING )
  RETURNING result STRING
Serializes data of the selected rows.
setArrayLength(
   name STRING,
   len INTEGER )
Sets the total number of rows in the specified list.
setActionActive(
  name STRING,
  active BOOLEAN )
Enabling and disabling dialog actions.
setActionHidden(
   name STRING,
   hide INTEGER )
Handling default action view visibility.
setCurrentRow(
   name STRING,
   row INTEGER )
Sets the current row in the specified list.
setFieldActive(
   field-list STRING,
   active BOOLEAN )
Enable and disable form fields.
setFieldTouched(
   field-list STRING,
   touched BOOLEAN )
Sets the modification flag of the specified field.
setArrayAttributes(
   name STRING,
   array ARRAY )
Define cell decoration attributes array for the specified list (singular or multiple dialogs).
setCellAttributes(
   program-array ARRAY )
Define cell decoration attributes array for the specified list (singular dialog only).
setSelectionMode(
   name STRING,
   mode INTEGER )
Defines the row selection mode for the specified list.
setSelectionRange(
   name STRING,
   start INTEGER,
   end INTEGER,
   value BOOLEAN )
Sets the row selection flags for a range of rows.