ui.Dialog.getArrayLength

Returns the total number of rows in the specified list.

Syntax

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

Usage

The getArrayLength() method returns the total number of rows of an INPUT ARRAY or DISPLAY ARRAY list. The name of the screen array is passed as parameter to identify the list.

DIALOG
  DISPLAY ARRAY custlist TO sa_custlist.*
    BEFORE ROW
      MESSAGE "Row count: " || DIALOG.getArrayLength("sa_custlist")
    ...
  END DISPLAY
  INPUT ARRAY ordlist TO sa_ordlist.*
    BEFORE ROW
      MESSAGE "Row count: " || DIALOG.getArrayLength("sa_ordlist")
    ...
  END INPUT
  ...