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 / patch gallery textinput
Power Apps
Answered

patch gallery textinput

(0) ShareShare
ReportReport
Posted on by 84

Hi, 

 

I want to patch a textinput that i placed in my gallery. But when i use this code it is collecting/patch the same value of the input.

How can i patch / collect the unique input from quant.Text to my SPlist ? 

 

My code: 

The code works for me fine... except the same value problem of the quant.Text.

 

ForAll(MyCollection;Patch(Uitgeleend;Defaults(Uitgeleend);{Titel:Titel;Categorie:Categorie;Barcode:Barcode;project:Textcart.Text;datumretour:Datepick.SelectedDate; AantalUIT: Value (quant.Text)}))

 

 

 

Sp Lists: 

"techniekvoorraad" = Mycollection

sharepoint lists.png

app: 

I want to patch the green box input. (quant.text) 

problem 4.png

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

    @MelvinGRM 

    You are working out of context of the Gallery - which is why you are getting the same value.  You need to base your Formula on the Gallery.

    Something like this Formula would work in context:

    ForAll(yourGallery.AllItems;
     Patch(Uitgeleend;
     Defaults(Uitgeleend); 
     {Titel:Titel; 
     Categorie:Categorie;
     Barcode:Barcode;
     project:Textcart.Text;
     datumretour:Datepick.SelectedDate; 
     AantalUIT: Value (quant.Text)
     }
     )
    )

     

    I hope this is helpful for you.

  • MelvinGRM Profile Picture
    84 on at

    Thanks it works! 

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard