powerapps: populate drop down list from another datasource

Crezzer7 picture Crezzer7 · Oct 20, 2016 · Viewed 25.6k times · Source

I stumbled across Microsoft PowerApps earlier, and though I would have a play with it. I have connected to my SQL Server, and created a template for browsing, viewing and editing a basic application. Now in my database I have the following relationship:

enter image description here

On the add/edit screen this asks the user to enter the "CustomerID". I want to be able to use a drop down menu to search the list of customers.

So far I have:

  1. Added an additional Datasorce to my table "Customers"
  2. Changed the control from a text box to a drop down menu

enter image description here

it is at this stage I am stuck and unsure of how to progress further. Currently when debugging, the list shows nothing, nor appears to be searchable.

Answer

Crezzer7 picture Crezzer7 · Oct 21, 2016

I found out how to do it! (with a different example, however the same thing required)

after the 2nd stage above, scroll down until you see the DataCardValue[number].value. its here that you can enter the alternative data source and populate the drop down list with the value you want. This automatically references the ID's and the correct options are shown:

enter image description here