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 / Udate all items in a G...
Power Apps
Answered

Udate all items in a Gallery

(0) ShareShare
ReportReport
Posted on by 310

I have a Gallery that Displays a Status Column - which is defined as a 'single line of text'. This column will usually have a number in it.

 

I would like to increment all items in the Gallery by a specific number. Currently, I have a text Box (UpdateStatus) on the Screen and I can input my number there.

I have inserted a button in the gallery with the Code 

Patch('SPlist', ThisItem, {Status:ThisItem.Status+UpdateStatus.Text})

 

This works, but I have to click the button in each row of the Gallery. Is there a way to do this with a single Click?

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Canadiansal 

    You can update them all with the following formula:

    ForAll(
     yourGallery.AllItems As _item,
     UpdateIf('SPlist', ID=_item.ID, 
     {Status: Status + Value(UpdateStatus.Text)}
     )
    )

     

    I hope this is helpful for you.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard