Can't define dropdown list source in VB - UiPath Apps

Hi all,

I seem to be stuck…
I created an app in App Studio(in Automation Cloud), chose VB as expression language(not legacy). I’m trying to add a dropdown containing a list of options.
The documentation states that for the list source ‘Valid data types include arrays of String, Integer…etc.’.
So i created an Array of String(Text) app variable and tried using that as List source and it doesn’t work.
The expression editor for List source has ‘ListSource(of T)/ Fetch’ as expected type, so i cannot simply use the array i created. Screenshot attached.

Any help is welcome and appreciated.
Thank you!

3 Likes

Same issue here. Cannot use static dropdown due to the issue.

Hello,

Please use the VB expression function as below to define static value.

AppsDataSource.from(New List(Of String) From {“Value 1”, “Value 2”, “Value 3”})

Basically you need to assign value to app data source and create a new list of string as above.

Thanks,
AK

3 Likes

Thank you very much, it worked. Based on your answer i could also use the String() variable i had created, like so:

AppsDataSource.from(YearsArr)

1 Like

@Serban ,

amazing, next level. !!! Keep doing and sharing.

Thanks,
AK

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.