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 / Change all gallery rec...
Power Apps
Answered

Change all gallery records when pressing send option

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

I want to create the following:

I have an gallery where data from an onedrive Excel file is pulled. I have managed to create an textinput and a button to change one cell of information. I want to create a button where I can change textinput within the gallery. But I am unable to do this. 

 

The onselect of the button called "Send" has the following code in the onselect: Patch(Tabel13;ThisItem;{'Geboekte voorraad (300100)':Value(TextInput1_3.Text)})

 

Could you help me with it?

 

Joost

Knipsel.JPG
Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @joosttricht,

     

    Do I understand it correctly that the individual send buttons work, but you would like to send all information at once via the arrow icon instead of individually via the send button?

     

    You can leverage the same code that is already working from your send buttons, and slightly adjust it to loop through the gallery items:

    ForAll(
     //Loop through gallery items (change to correct gallery name)
     GalleryName.AllItems As Main;
     //Patch the geboekte voorraad value
     Patch(
     Tabel13;
     Main;
     {'Geboekte voorraad (300100)':Value(Main.TextInput1_3.Text)}
     )
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • joosttricht Profile Picture
    9 on at

    It has solved the question! Am I also able to filter out the values that are not changed in the textinput?

  • LaurensM Profile Picture
    12,516 Moderator on at

    @joosttricht with not changed, do you mean empty Text Input values? In that case, you could filter out those rows:

    ForAll(
     //Loop through gallery items (change to correct gallery name)
     Filter(
     GalleryName.AllItems, 
     //Change TextInput to the correct name
     !IsBlank(TextInput.Text)
     ) As Main;
     //Patch the geboekte voorraad value
     Patch(
     Tabel13;
     Main;
     {'Geboekte voorraad (300100)':Value(Main.TextInput1_3.Text)}
     )
    )

     

    I hope this helps!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard