SelectRowByKey(Int32,String,Boolean) method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the SelectRowByKey(Int32,String,Boolean) method to select a row in the grid using the specified parameters. If a row for the specified parameter is found and the selectFirstRowAsDefault parameter is set to True, the first row in the grid is selected. Otherwise the previous row selection is not changed.
Syntax
result = SelectRowByKey(StepNo, SpecId, SelectFirstRowAsDefault);
Parameters
StepNo
An integer value that represents a step_no value from the job_spec table.
SpecId
A string value that represents a spec_id value from the job_spec table.
SelectFirstRowAsDefault
A Boolean value that indicates whether the first row in the grid should be selected, if the specified parameters does not exist in the grid. This parameter should be set to False if the row selection is not changed in a case when the specified parameters are not found in the grid.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.