How to insert variable into selector

Hi Friends,

I would like to make the robot who upload the Avilable Activity of manage packages in Ui path studio.

The Activity’s selector is below.
2

I changed the selector as belows.
<ctrl idx=’" +number + "'name=‘Orc.NuGetExplorer.PackageDetails’ role=‘list item’ />

But I get an error in the attached image.
1

Please tell me how to insert variables into selector.

Best regards,

Taichi

Hello there,
It’s a small bug .
You need to paste selector in the expression editor window directly not by opening it(maximizing).
Else it adds &quote; instead of '"

Do not click on the option marked as read just paste directly there inside double quote “”.
selector

2 Likes

Thank you for your reply.
I pasted in editor of selector and attached below.

But same error was happend…

Best regatds,

Taichi

Hi,
You suppose to pass between double quotes, i don’t see there :thinking:
more like this,
ex:
sample

Sorry , I could write like yours.
The error message was below.


The last line says [At the Option Strict on , you can not do the implicit type conversion from ‘String’ to ‘Double’]

And the type of number in Int32.

best regtads,

Taichi

ok its compiler error.
Just add ToString at the end of number like it.
number.ToString

Thank you for your advice.

The robot was moved!!

Thank you so much.

Taichi

2 Likes

Hi All,
I have created a string variable and stored the text in that sting and i wanna pass the stored variable in another field and wanna retrieve please help me on that. How we can achieve on that.