Display Values in Dropdown in UiPath Apps

Hi UiPath Community,
I have data service entity that shown below


here in this entity datetype row is empty that i get from the UiPath Apps
based on that i have created a sample Ui in Apps that shown below

as see in the screen shot when i click on the parent account or project name dropdown it should dispaly the values , i have added entity but i dont know how to display the values in the dropdown i tried to write the expression but it is throwing error, other than this in the practical scenario if user select either parent or projectname dropdown the child account dropdown will only display the values corresponding to the parentor project dropdown suppose if user select 1 from the parent account, it should only display 908,123 and 345 , after that user enters the date type,that date type should should go and sit in data service(lookup on child account number selected by user) , so in contrast i need to display values in dropdown, based on the selected dropdown i need to display the values in child account and to add datetype in data service based on user inputs, can any one help me how to do this, i am relatively new to UiPath apps and data service
Regards,
Alan

A drop down is expecting an Array. So you need to initialize this array in the page load or home page load event

For hard coding the array values - you can use below method

Or if the value is expected from Data Service unique values of a column - use the below expression

EntityName.data.select(function(x) x.ColumnName).Distinct().ToArray

Hope this helps.

Thanks for the reply , do you know how to populate those data in data service using lookup, for example when user select date type, that date type should go and sit in data service (based on the lookup on child account) i have attached a screen shot of data service below

I didnt get

is your ask is to filter data service based on the selected value?

This app i have created


This is my data service, here you can see datetype is empty this date type we will get from apps from the user

suppose if the user select the Parent Account Number as 1 , child account as 345 and user enter the date type as “Month” it should come in the data service as in the 5 th row as you can see in the data service screen shot