I have a Sharepoint Table1 where userdata gets stored. There is 1 row per request and each request has an ID, Name, Approved column as well as having SharePoint multiselect "sub_IDs", "Questions" and "Answers" columns
So my table ends up looking like:
| ID | Name | sub_IDs | Questions | Answers | Approved |
| 1 | Foo | {s1;s2;s3} | {Q1;Q2;Q3} | {A1;A2;A3} | Waiting |
| 2 | Bar | {s1} | {Q1} | {A1} | Approved |
(where the {...} is a table with a single column called "Value", I believe that this is forced by SharePoint and I have no control over this)
In Gallery1.Items = Table1, then I nest another gallery (Gallery2) inside Gallery1 and I want to display the "sub_IDs" and "Questions" in a label and the "Answers" in a text box that be updated.
I cannot even figure out how to get Gallery2 to display correctly though,
I tried:
AddColumns(ThisItem.subIDs, "_Question", LookUp(ThisItem.Questions, true, Value), "_Answer, LookUp(ThisItem.Answers, true, Value))
But while the "sub_IDs" display correctly, the Questions and Answers end up being the first row of the subtables repeating (Q1 and A1 when using ID=1 as an example)
I am guessing that there is some fancy way to use AddColumns and ForAll to get this to work but it escapes me...