cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ZachyV Advocate V
Advocate V

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
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
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 Advocate V
Advocate V

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 Advocate V
Advocate V

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,835)