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 / Patch Function with ad...
Power Apps
Unanswered

Patch Function with add value

(0) ShareShare
ReportReport
Posted on by 54

Hello, everyone,

 

Is there a way to update an existing value from the table using a patch function?


Starting position:
in the table is e.g. "5". Now I want to add the value from the APP using a patch function.


So that means:
"5" is in it, a value "9" comes from the app. Now this value should add up to 14

Is this possible?

Categories:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hi @memphis111 yes it is possible, you need to identify the row you wish to update tho. for example say you have the following columns: id (unique identifier for the row), name and score and lets call the table _letsAddIt. you can also patch it if the table is already being displayed via a gallery the method is the same.

     

    _letsAddIt data is {id:0, name:"uhm", score:5}

    • add a gallery, galAddIt with Items = _letsAddIt
    • add a TextInput call it txtAddTt
    • add a button call it btnAddIt with OnSelect = Patch(_letsAddIt,{id:galAddIt.Selected.id},{score:Value(txtAddIt.Text) + galAddIt.Selected.score)

    the value in the gallery will update

    Result here:

    Peek 2022-02-23 13-54.gif

    Hope it helps,

    R

     

     

     

     

     

  • memphis111 Profile Picture
    54 on at

    Hi there,
    thank you very much, that was exactly what I needed

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard