I'm trying to build an app for checking on the condition of safety mats at trampoline parks. The app needs to have a visual representation of the mats. The data will be held in a SharePoint Online list but I am lost when it comes to the patch command. I have added labels to each box for ease.
London site has 33 trampolines and the mats around each one are divided into areas. I have managed to get this into app like this but I'm struggling with the parts in the red box.
and my data in a List would look something like this.
Each of the boxes around the trampoline are checkboxes and I have an Oncheck command so only one can be selected at a time and adds the selected one to a collection called Areas.
Oncheck
ClearCollect(Areas, {selectedAreas:"Area 1"});Reset(Checkbox_A2)&Reset(Checkbox_A3)&Reset(Checkbox_A4)&Reset(Checkbo_xA5)&Reset(Checkbox_A6)&Reset(Checkbox_A7)&Reset(Checkbox_A8)&Reset(Checkbox_A9)&Reset(Checkbox_A10)
OnUncheck removes the selected areas from the collection.
Remove(Areas, {selectedAreas:"Area 1"})
I'm not sure if a collection is the correct thing to do here?
I now need to collect the issues for A1, and add them to a collection, add a new line to collection for A2 issues and so on. Show all the collected issues in the gallery in the red box.
Once data for all checkboxes has been collected, save to the SharePoint list. Not all 10 areas will have issues so some may be missed. Again, I'm stuck with the patch command.
Any help much appreciated.

Report
All responses (
Answers (