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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ForAll Gallery Items P...
Power Apps
Answered

ForAll Gallery Items Patch Combobox Values from each Gallery Row does not work

(0) ShareShare
ReportReport
Posted on by 32

Hi together,

 

this is my first article here. In the past I always could solve my problems with reading articles here, but this problem really bothers me and I think I have tried everything I can think of.

 

My Data Structure: Sharepoint List Text Column

 

What do I want to do?: I Have a Gallery that Filters the Sharepoint List Items for some conditions. In this Gallery for each row I have a Combobox and a Datepicker that has as its Default Value The Data from this Sharepoint List Item. If the user wants to, he sould be able to select a new value from the combobox and/or a new date and press "save", then every Item from this Gallery gets updatet with the new values for this item.

MaxN1309_4-1695275358598.png

 

 

What is my Problem?: It does not. work, no matter what I do, the best I get is that the value of the Last Combobox in the gallery gets updatet.  I always just patches the last combobox value into all Items, does not matter if the comboboxes have different values selectet.

 

What have I tried?:  Below I have pictures from my Code Versions I tried. I tried getting the Value from a Label because I thought maybe just comboboxes do not work, I also tried patching it into a collection, but it also never got the right values from the comboboxes, or labels, oder Textinputs. It seems like the "ForAll" does not go through all comboboxes somehow.

 

MaxN1309_2-1695275135610.png

MaxN1309_3-1695275164148.png

 

 

It would be really nice if someone could help, because I am really stuck at this one and the solutions that make sense for me sadly do not work. If I should give more details about my problem, I will do that of course.

 

Thank you all in Advance!

 

Best wishes 

 

Max

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Chris-D Profile Picture
    1,246 on at

    Hi @MaxN1309, you're nearly there. The gallery creates a control for each row, so in your example Label8_1 refers to the 'master' control rather than the individual. You should change this to ThisRecord.Label8_1.Text and it should work 😉 

    The gallery AllItems table actually contains a copy of each control so you access them via this instead of directly. 

  • MaxN1309 Profile Picture
    32 on at

    Hi Chris, thank you for your answer!

    I hope that I did not misinterpreted your answer, but in my case your solution shows me that there is a mistake. I tried two ways of interpreting your answer.

    MaxN1309_0-1695299907081.png

    MaxN1309_1-1695300000904.png

     

  • Chris-D Profile Picture
    1,246 on at

    I would have expected your first version to work, what's the error if you hover over the Label8_1 text? 

  • MaxN1309 Profile Picture
    32 on at

    It says that the argumentet is not of the expectet type(Text), the type is Error and that the name of Label8_1 is not known

  • Chris-D Profile Picture
    1,246 on at

    It should work. I did a quick example and it works ok. Check the names of your controls? 

    ChrisD_1-1695301503830.png

     

  • MaxN1309 Profile Picture
    32 on at

    I have checked the names of my controls, everything is okay regarding that. Maybe it works for you because you do not use a SharePoint List? 

    But thank you very much for trying to help!

  • Chris-D Profile Picture
    1,246 on at

    I am using a SP List in my example.

     

    If you type 'ThisRecord.' <<-- with a dot, it should give you a list of all items within your ThisRecord object. Maybe you can find what you need on that list? It should include all the column names but also the names of all the controls in the gallery. 

  • MaxN1309 Profile Picture
    32 on at

    I have tried that, it only suggests all the column names but nothing else. I have also tried putting the button into the gallery, but that did not change anything.

  • Chris-D Profile Picture
    1,246 on at

    Is this a Canvas or Model Driven app? 

  • MaxN1309 Profile Picture
    32 on at

    It is a Canvas App

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard