web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Edit items in a Galler...
Power Apps
Unanswered

Edit items in a Gallery NOT using a grid or a form

(1) ShareShare
ReportReport
Posted on by 28

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:

LinkedGalleries.PNG

 

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!!

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    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 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard