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 / Increment input box in...
Power Apps
Unanswered

Increment input box inside gallery

(0) ShareShare
ReportReport
Posted on by 259

Hey guys, the image explains it self. 

2 buttons, one to increment, the other to decrement the value form that input (txtQtd).

tet.PNG

 

I´ve tried to use patch() on select of the button:

 

Patch(
 colResumo;
 ThisItem;
 {txtQtd: txtQtd + 1}
 )

 

But I got an error "The specified column "txtQtd" does not exist" because this is not an item, it´s a text input.

Any ideas on how to do this?

 

 

Thanks in advance

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

    @JoaoSantos489 

    What is the Text property of your label?

  • fuzzy_fuzz Profile Picture
    229 on at

    @JoaoSantos489 

     

    You have to look for the column where u get the quantity of items from. That is what you patch.

     

    Patch(
     colResumo;
     ThisItem;
     {QuantityColumn: QuantityColumn + 1}
     )

     

  • JoaoSantos489 Profile Picture
    259 on at

    Sry @RandyHayes it´s a text input, not a label.

    (Edited the post)

  • JoaoSantos489 Profile Picture
    259 on at

    @fuzzy_fuzz it´s a input text. When I add the item to the gallery (rigth) that input box it´s empty.

    And you write it down the quantity that you want.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JoaoSantos489 

    Okay...what is the Default property of your TextInput control then?

  • JoaoSantos489 Profile Picture
    259 on at

    Thanks for the fast reply.

    It´s "0"

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JoaoSantos489 

    So do you not have any column in your underlying source for the gallery?  Or in other words, what is the Items property of your gallery?

  • JoaoSantos489 Profile Picture
    259 on at

    Well no...Is it only possible with a column?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JoaoSantos489 

    Properties in PowerApps derive their values based on a formula.  You cannot alter them without one.

    So, in your first formula, you were trying to change the control directly...you can't do that in PowerApps.

     

    PowerApps is built after Excel - so, just like in Excel, if you want a Cell to show a certain value, you put a formula in it - you don't have some formula in another cell try to "Set" the value of another.

     

    But what is the Items property of the gallery?? Where are you getting the information for it?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard