I have a PowerApp with a number of known and unknown data sources. By this I mean I have a SharePoint list named DS1 and will have more in the future.
I have a function that passes a value to a global variable that looks similar to this:
Set ( GlobalVar , "Table Name")
However when setting the data source for a gallery the variable is text and not linked to the connected data source.
Unfortunatley, it's not really possible to use a variable to store a data source.
This thread here provides some more discussion on this issue.
It is possible to store a data source as a variable as I've achieved it in the following:
DataSourceLookup is a text variable storing "RISU-LOG". This isn't the solution I wanted though as it would require a manual code change if I were to add multiple data sources in the future.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.