Skip to content

pSelectedRows - cCJGridPromptList

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

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer pSelectedRows
Access Type Syntax
Read Access: Get pSelectedRows to IntegerVariable
Write Access: Set pSelectedRows to IntegerVariable/Value

Description

After you have made your prompt selection, pSelected contains an array of the rows that were selected. If the prompt list is single-select (pbMultipleSelection is False), the array should contain one value, the selected row. If the list is multi-select, the array will contain all selected rows. 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 and preferably, you will use the functions SelectedRowIds and SelectedColumnValues, which returns arrays of selected RowIds or column values. Working with arrays of RowIds or column values is usually easier and more meaningful.