setRowSelection()

Update a multiple row selection state.

Syntax

setRowSelection(
   tableName STRING,
   selectionMode STRING,
   startIndex INTEGER,
   endIndex INTEGER)
  1. tableName is the name of the table.
  2. selectionMode is the method of selection specified by these values.
    selectionMode values:
    ggc.MRS_SET - Clear and set a new row selection.
    ggc.MRS_UNSET - Unset a row selection.
    ggc.MRS_EXSET - Extend a row selection.
  3. startIndex is the index row number to start the selection.
  4. endIndex is the index row number to end the selection.

Usage

You can use it to perform a selection on multiple rows in a table. For example:

Clear and set a row selection.

CALL ggc.setRowSelection("items", ggc.MRS_SET, 10, 20)

Extend a row selection

CALL ggc.setRowSelection("items", ggc.MRS_EXSET, 25, 26)