cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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

Highlighted
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?

Highlighted
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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response 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 (4,372)