RowCount
Description
Returns the number of rows for the defined scroll.
Example
This example illustrates using the RowCount action to perform a loop:
| Scroll ID | Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|---|
|
|
Browser |
Start_Login |
|
|
|
|
|
Browser |
FrameSet |
TargetContent |
|
|
|
|
Page |
Prompt |
MAINTAIN_SECURITY.USERMAINT.GBL |
|
update |
|
|
Text |
Set_Value |
Name=PSOPRDEFN_SRCH_OPRID |
|
STU1 |
|
|
Page |
PromptOk |
|
|
|
|
|
Page |
Go_To |
Roles |
|
|
|
1 |
Scroll |
Key_Set |
name=PSROLEUSER_VW_ROLENAME |
type=Text |
Dummy |
|
1 |
Scroll |
RowCount |
|
ret=&Count |
|
|
|
Variable |
Set_Value |
&EndCount |
|
Add(&Count|-1) |
|
|
Loop |
For |
&RowCount =0 to &EndCount |
|
|
|
|
Text |
Get_Property |
name=PSROLEUSER_VW_ROLENAME$&RowCount |
prop=Value;ret=&Value |
|
|
|
Log |
Message |
The role of row number &RowCount is &Value |
|
|
|
|
Loop |
Next |
|
|
|