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 / Plus and minus buttons...
Power Apps
Unanswered

Plus and minus buttons to update column from AddColumns function

(1) ShareShare
ReportReport
Posted on by 47

Dear PowerApps Experts,


I have a problem with my shopping cart, because I want to update values when I select a monitor to pick it to the cart, I want to UPDATE QUANTITY value, if I select 1 monitor to the cart, QUANTITY should be substracted minus 1, for example from 19 to 18.

karik_1-1720083522079.png

This is my items function from the Gallery - Qty is added from AddColumns function:

 

Filter(
 AddColumns(
 GroupBy(
 Sprzęt;
 Marka;
 Model;
 Cena;
 Dostępne;
 Description;
 _byModel
 );
 Image;
 Model; Qty; CountRows(_byModel)
 );
 ThisRecord.Dost_x0119_pne = true
) 

 

So the question is: how can I update QUANTITY Text value from 19 to 18 when I pick item to the cart?

 

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @karik ,

    Use the Patch function to update the quantity in your data source.

     

    Patch(
     Sprzęt, 
     ThisItem, 
     {
     Dostępne: ThisItem.Dostępne - 1
     }
    )

     

  • karik Profile Picture
    47 on at

    @anandm08 unfortunately that's not working. "DostÄ™pne" column is a boolean (it means "Available" - true/false)

     

    karik_0-1720090526204.png

     

    Type "Image" of this argument does not fit to expected type "Record". Found type "Text".

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 301 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 297 Most Valuable Professional

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard