cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ZachyV
Level 8

Populating a dropdown

I understand that Powerapps can now use SQL views in the app. Well,

 

I created views in SQL database and I would like to use it populate a dropdown control. 

 

Can you show me how to do that? Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Populating a dropdown

There are few ways to do so.

 

I usually use something like this:

 

Dropdown.Items:

Distinct('[dbo][yourSQLview]',YourColumn);

If your SQL View has one column already just put this in Items:

'[dbo][yourSQLview]'

View solution in original post

3 REPLIES 3
Highlighted
Anonymous
Not applicable

Re: Populating a dropdown

There are few ways to do so.

 

I usually use something like this:

 

Dropdown.Items:

Distinct('[dbo][yourSQLview]',YourColumn);

If your SQL View has one column already just put this in Items:

'[dbo][yourSQLview]'

View solution in original post

ZachyV
Level 8

Re: Populating a dropdown

What is not clear to me is that which Datasource should be use for the app?

I have only one table but I created several views based on that table.

If I have several dropdowns, can I point the datasource to diiferenrt views from same table source?

Not sure how do that?

ZachyV
Level 8

Re: Populating a dropdown

It does show up unsorted in the field I'm sorting. The data are VI,II,I,V,IV,III.

It should be I,II,III,IV.V.VI but because of the table is not sorted.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,494)