Skip to content

SelectedRowIds - cCJGridPromptList

Returns an array of selected row RowIds from the last successful use of the prompt object

Type: Function
Return Data Type: RowID[]

Syntax

Function SelectedRowIds Returns RowID[]

Call Example

Get SelectedRowIds to RowID[]Variable

Description

After you have made your prompt selection, you can call SelectedRowIds to return an array of the RowIds that were selected. If the prompt list, is single-select (pbMultipleSelection is False), the array should contain one value, the selected RowId. If the list is multi-select, the array will contain all selected RowIds. Multi-select can only be used with static prompt lists (i.e., all data must be loaded at one time).

This can be used with custom and non-invoking prompt lists (peUpdateMode is umPromptCustom or umPrompnonInvoking). If pbCanceled is False, you can use this to determine what rows were selected.

Alternately, you can use SelectedColumnValues to return the selected column values.

The function uses pSelectedRows to determine which rows were selected.

Return Value

Array of RowIds representing the rows that were selected.