Trouble displaying Store ID in a label after selecting Store Name from a dropdown - Need assistance (UiApps & VB Expressions)

Hi

Wishing you all a very happy New Year.

I’ve an entity that includes Store Names and their corresponding IDs. My goal is to populate a dropdown menu with the Store Names and, upon selection by the user, display the respective ID in a label. So far, I’ve managed to populate the dropdown with the Store Names but I’m encountering difficulties in displaying the ID in a label after selection.

Cheers
Dev

Hi @Devbrath_Rajkhua

Check on below

Hi @Devbrath_Rajkhua

Dropdown →
Drag and drop the Dropdown option from the control to design panel in UiPath apps.
In the General panel there is option called ListSource. In that list source you have to give like the below expression.

AppsDataSource.from(New String() {"99","100","101","102","103","104","105"})

In the above expression I have given 99,100,101 are values replace those with your values.
It will show the values in the dropdown.

Label →
Drag and drop the Label activity from the display option, In the general panel there is a text option in that give the below expression.

MainPage.Dropdown.SelectedItem.ToString

Hope it helps!!

Hi @lrtetala and @mkankatala

I am able to achieve this. What I am looking for is to get the corresponding “Store ID” when a “Store Name” is selected from the dropdown. I am getting the “Store ID” and “Store Name” from an entity.
Stpe1:
image
Step2:
image

Note: This was done in legacy, we are migrating to VB

Cheers
Dev

@Devbrath_Rajkhua

@Devbrath_Rajkhua ,

Are you still facing issue? or this is sorted?

Hi @Arvind_Kumar1

Still working on it, no solution as of yet.