cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

A dropdown list bind to a collection, but doesn't work

hi, good evening, guys

I wanted a downdown list connect a collection which created onStart property of my Apps , my code as below:

onStart: ClearCollect(PlantCollect,{Value: "PSH"},{Value: "PAC"},{Value: "PWH"} )

and set up the items of dropdown list and values ,the screen as below:

ddl1.JPGddl2.JPG

 

 

but there's nothing happy whenI run the apps and click to select, tried to check the code and the settings, but not catch where the issue is.

 

thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: A dropdown list bind to a collection, but doesn't work

hi @Gareth_C It works fine after using your code, thanks

View solution in original post

3 REPLIES 3
Highlighted
Helper I
Helper I

Re: A dropdown list bind to a collection, but doesn't work

@wht_629 
Try this instead
onStart: ClearCollect(PlantCollect,{Value: "PSH",Value: "PAC",Value: "PWH"} )

Or better still you not recommended to hard code but could put 
onStart: set(Dropdown, ["PSH","PAC","PWH"])

 
 
 

Capture111.JPG

Highlighted
Helper II
Helper II

Re: A dropdown list bind to a collection, but doesn't work

hi @Gareth_C It works fine after using your code, thanks

View solution in original post

Highlighted
Helper I
Helper I

Re: A dropdown list bind to a collection, but doesn't work

@wht_629 
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,581)