I want to checkbox row in a table.
The row number is stored in a variable rowNum.
In selector, it shows
<webctrl id='tblResult_0' tag='INPUT' type='checkbox' />
This selects row 0. I want to select what is stored in rowNum.
How do I do that in UiPath?
Its a click activity.
1
votes
1 Answers
0
votes
It depends on which system you use.
So to go with your example: <webctrl id='tblResult_0' tag='INPUT' type='checkbox' />
Without Object repository
- First add an
Assignactivity before you use the dynamic selector - Now set the dynamic selector to a new variable
numin theAssignactivity- Set
numto0
- Set
- Use that new variable
numnow as selector input wherever you want like so"<webctrl id='tblResult_" + num + "' tag='INPUT' type='checkbox' />"
With Object repository
With OR it's much easier. Here, we don't need an Assign activity anymore.
First, create a variable without the
AssignactivityNow set the dynamic selector to a new variable
numin theVariablestab- Set
numto0
- Set
Use that new variable
numnow as selector input in your Object repository selector"<webctrl id='tblResult_{{num}}' tag='INPUT' type='checkbox' />"Here an example screenshot of one of my own processes:
