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 / 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)
  • 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}));;
  • 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)

     

  • 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

    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 
    ClearCollect(liczba, Zamowienie_lista.AllItems)

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
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard