ui.Dialog.setSelectionMode

Defines the row selection mode for the specified list.

Syntax

setSelectionMode(
   name STRING,
   mode INTEGER )
  1. name is the screen array name.
  2. mode defines the selection mode (0, 1).

Usage

In DISPLAY ARRAY instructions, the setSelectionMode() method can be used to enable multi-row selection. This feature is available in singular and sub-dialog DISPLAY ARRAY instructions.

ON ACTION mrs_on 
  CALL DIALOG.setSelectionMode( "sr", 1 )

Possible values of the second parameter are 0 (single row selection) or 1 (multi-range selection). Other values are reserved for future use.

Multi-row selection can be enabled and disabled during the dialog execution. If multi-row selection is switched off, selected rows get deselected.

For more details about multi-row selection, see Multiple dialogs.