ui.Dialog.getCurrentRow

Returns the current row of the specified list.

Syntax

getCurrentRow(
   name STRING )
  RETURNING result INTEGER
  1. name is the screen array name.

Usage

Use the getCurrentRow() method to retrieve the current row of an INPUT ARRAY or DISPLAY ARRAY list.

You must pass the name of the screen array to identify the list.
DIALOG
  DISPLAY ARRAY custlist TO sa_custlist.*
    BEFORE ROW
      MESSAGE "Current row: " || DIALOG.getCurrentRow("sa_custlist")
    ...
  END DISPLAY
  INPUT ARRAY ordlist TO sa_ordlist.*
    BEFORE ROW
      MESSAGE "Current row: " || DIALOG.getCurrentRow("sa_ordlist")
    ...
  END INPUT
  ...