Kapil
(Kapil Parmar)
April 11, 2025, 12:07pm
1
Hi,
I am having below selector,
<webctrl name='conditions[variable][text1]' tag='SELECT' />
“variable” text in the above selector is a variable. I want the value of text1 to be anything apart from col_to. Can you please help with creating the selector for same.
Thanks!
Hi @Kapil
Try to use the following approach:
Use a variable (e.g., myVariable) for the dynamic part of the selector.
Check if myVariable is not equal to "col_to" using an If condition.
Dynamically build the selector using the Assign activity:
selector = "<webctrl name='conditions[" & myVariable & "][text1]' tag='SELECT' />"
In the If condition, check if the variable is not “col_to”:
If (myVariable <> “col_to”) Then
Use the dynamically generated selector here
End