I saw this post but it seems to only partially answer the question.
https://powerusers.microsoft.com/t5/General-Discussion/Syntax-for-joining-tables/m-p/61425#M25380
==
I have several tables I designed, all linking to a "Main" table.
I also (in an attempt to solve the issue) created a "View" of what I'd like to see in PowerApps.
Also just to say I'm sorry if this is similar to my other post; it is; but I can't seem to make that logic work in this case.
I've made too attempts at creating PowerApps based on my data, as below:
1) Using "Gallery" - "SQL Datasource" - Select the relevant database, and later where relevant columns.
As an example, I selected the "MAIN" table. The Main table has a column (now called) "APPLICATION_ID".
The idea is, to pick from a List of Values, the list being the "Applications" in the Applications Table:
APP_ID APPLICATION PROCESSSTEP
1 Body Shop BIW Swindon Pressings
2 Paint Shop E-Coat Sand
3 E-Coat Repair Abrasive Discs 125mm
4 Masking Contrast Roof Abralon Sheets
So I can (sometimes) get the list of applications to appear (eventually I deleted everything and re-added my own "DataCard" and "DropDown control".
Then, everything goes screwy in one or more of the following ways:
- The data cannot be saved (at all) - e.g. new records can't be created; and existing records cannot be changed.
- The data is saved, but the MAIN_ID gets stored instead of the APP_ID
- Wierd Effects; possibly related to the above - as an example, the "Browse" screen shows one value (mostly it appears to the the MAIN_ID), and the "View" screen shows a different ID; and/or they change when the record loads/is selected.
Having spent several hours fiddling around with that and getting no luck or even consistent returns.
I tried:
2) Creating a "VIEW" in SQL, and linking all the ID's together correctly, so that it returns already the correct data.
The view seemed to work; but when you feed that as a data source to the new gallery app; everything is read only. In fact it doesn't even give you either a plus button for new records, nor an edit screen.
Any ideas? It seems to be almost unbeliable hard to do so something so simple; I'd have thought it would just handle all this rubbish for you instead of making it so hard. Especially after building a nice view defining the relationships between the data.
Like the poster in my link, I'm now thinking to just put every field onto one massive table; but that doesn't really work as a design and would result in many NULL columns.