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 / Butto to add all to co...
Power Apps
Answered

Butto to add all to collection (button outside the gallery)

(0) ShareShare
ReportReport
Posted on by


Hello, I have a problem, I would like to create a button outside the gallery that would be used to add all filled input fields to the collection called liczba. I went in that direction but it didn't work

 

 

ForAll(Zamowienie_lista.AllItems; Collect(Zamowienie; {liczba}))

 

 

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

    @pablik01 
    ClearCollect(liczba, Zamowienie_lista.AllItems)

  • pablik01 Profile Picture
    on at

    not working

    I did something like this

    Collect(Zamowienie;{Liczba:liczba.Text})

    but he only adds the last item that I entered (and I want him to add all that are filled in), I also need him to add a few more columns assigned to this number.

    in short, I want it to do what the button does next to each row in the gallery only globally. This is the button code on the line:

    Collect(Zamowienie;{Grupa:ThisItem.Grupa;Nazwa:ThisItem.'Nazwa asortymentu';Liczba:liczba.Text;Jednostka:ThisItem.'j.m.';Ind:ThisItem.Indeks});;
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @pablik01 

    Funny, it works for me.  The gallery on the left is used by the button for creating the collection which is shown in the datatable on the right!1.jpg

  • pablik01 Profile Picture
    on at

    for me he is shouting that ClearCollet should be a collection

     

    pablik01_0-1660412176279.png

    I need those inputText fields that are filled in to end up in a collection called Zamowienie. together with the other two columns (I download the data from the excel sheet)

     

  • Verified answer
    pablik01 Profile Picture
    on at

    GOT IT!

     

    ForAll(Filter(Asortyment_lista.AllItems;Value(liczba.Text)>0);Collect(Zamowienie;{Nazwa:'Nazwa asortymentu';Liczba:liczba.Text;Jednostka:'j.m.';Ind:Indeks}));;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard