web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : knQXX9zp3Ccp0TuymSVGRf
Power Apps - Building Power Apps
Answered

selecting multiple records in gallery

Like (0) ShareShare
ReportReport
Posted on 18 Jun 2021 11:07:07 by 525

Hi Reader,

 

I'm having a gallery with 5000 records, when i click select all option I'm able to get only 100 records out of 5000

the formula i was using is filter(gallery.allitems, cbox.value)

Krishna_R_0-1624014271484.png

 

Categories:
  • Verified answer
    CNT Profile Picture
    10,919 Super User 2024 Season 1 on 20 Jun 2021 at 06:46:36
    Re: selecting multiple records in gallery

    @Krishna_RPowerApps does not load all the items into the Gallery in the beginning. Items get loaded as you scroll. When you try to set the checkbox to true it will not work. But you can do this,

    1. Load the records into a collection. ClearCollect(myCollection, SortByColumns(SQLTable,"Modified"))
    2. Add one extra column to this collection , IsSelected. AddColumns(myCollection, "IsSelected")
    3. Set this collection in the Items property of the Gallery.
    4. Set ThisItem.IsSelected as the default property of the checkbox in the Gallery.
    5. In the OnCheck of the SelectAll checkbox, ForAll(collection, Patch(collection, ThisRecord, {IsSlected:true}).
    6. In the OnUnCheck of the SelectAll checkbox, ForAll(collection, Patch(collection, ThisRecord, {IsSlected:false}).
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 19 Jun 2021 at 15:44:08
    Re: selecting multiple records in gallery

    @Krishna_R 

    This worked for me to change the name of one of the products in a fictitious financial sample list. 

    You could modify the formula to meet your needs

    With(
     {
     fs: Filter(
     Financialsample,
     Product = "Amarilla"
     )
     },
     ForAll(
     fs,
     Patch(
     Financialsample,
     LookUp(
     Financialsample,
     ID = fs[@ID]
     ),
     {Product: "Amarillo"}
     )
     )
    )

    It takes a while but worked well on a large data set.  

  • Krishna_R Profile Picture
    525 on 19 Jun 2021 at 14:57:53
    Re: selecting multiple records in gallery

    @Drrickryp 

    if we can limit 1000-2000 items. is there a way to selectall option at a time ? 

  • Krishna_R Profile Picture
    525 on 19 Jun 2021 at 14:51:39
    Re: selecting multiple records in gallery

    @CNT 
    SortByColumns(SQLTable,"Modified")

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 18 Jun 2021 at 16:20:16
    Re: selecting multiple records in gallery

    @Krishna_R 

    It seems ridiculous to expect a user to search through 5k records to choose from in a gallery.  It makes more sense to filter the galleries items property first and then select records. 

  • CNT Profile Picture
    10,919 Super User 2024 Season 1 on 18 Jun 2021 at 16:15:53
    Re: selecting multiple records in gallery

    @Krishna_R what's the Items property of the Gallery? 

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on 18 Jun 2021 at 15:05:24
    Re: selecting multiple records in gallery

    a20.jpg

    I can select all the record i see in gallery. I just remember i have this in one my apps.

    I haven't scroll the gallery and when i clicked select all it selected all 507 records.

    Checkbox inside the gallery is named Checkbox1

    Checkbox outside gallery is named Checkbox2.

    Checkbox1.Default: Checkbox2.Value

  • Krishna_R Profile Picture
    525 on 18 Jun 2021 at 11:55:43
    Re: selecting multiple records in gallery

    Hi @zmansuri ,

    yes until & unless the user scrolls till down remaining records are won't come up. hope there might be a work around for this

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on 18 Jun 2021 at 11:37:14
    Re: selecting multiple records in gallery

    because the initial load limit is 100. I don't think there is a direct solution for that. Maybe someone here has a work around for that.

    when you scroll the gallery to the bottom it will select more records.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete