
Announcements
This is going to be a long post, because I have no idea what is preventing me from doing this...
I would like to EDIT the fields displayed in my Gallery without using a Grid experience in that gallery. All the videos I find to create an editable gallery are in Grids.
I have 2 related galleries (based on SharePoint lists that are linked by a LookUp field of ProjectName). I click on the project name in Gallery 1 (on the left of the screenshot) and the related records display in Gallery 2 (on the right of the screenshot). Each gallery is inside of a Container.
I set the Template of Gallery 2 to be the same size as the container holding that gallery because I'm trying to "fake" a form experience. There will be 0, 1, or many related records displayed in Gallery 2.
Why am I trying to fake a form experience? Because the layout options of a form are SO restrictive. The gallery allows me to place fields anywhere I want and have different height fields, etc. See the screenshot:
A few important notes:
The 2 fields in the middle with no field labels are the ID of the displayed related project update and the project name field from the related project update (just shown for now so I can make sure everything is displaying correctly).
The Last Modified value is the SharePoint-List-system-generated Modified field from the related project update that is displayed.
The Budget number is from the Projects SharePoint list that this update is related to. (I've tried removing that field to see if that made a difference, but it didn't seem to.)
The Gallery is in Edit mode, all the fields are in Edit mode. I have no idea what I'm doing wrong. Or if it's even possible to edit a gallery that is not in a Grid (although I don't see what the layout of the fields would have to do with anything).
Help!!
To create editable fields within the gallery, you can use text input controls instead of labels to display the data.
For example, for the ID of the displayed related project update, you can use a Text Input control and set its Default property like this:
ThisItem.ID
Repeat this for other fields as needed, adjusting the property to match the corresponding field.
You might also need a way to save the changes.
Inside the gallery (click pencil icon first near the Gallery, before inserting the Control to add the Control inside the Gallery), you can add a button that, when pressed, will patch the changes to the data source.
Here's how you can use the Patch function to update the selected item:
Patch(yourSharePointList, ThisItem, {ColumnName1: TextInput1.Text, ColumnName2: TextInput2.Text, ...})
Replace yourSharePointList with your actual data source, and replace the column names and text input references with the ones you've used.
After patching the data, you may want to refresh the gallery to reflect the changes.
Refresh(yourSharePointList)
See if it helps @Oboecil66