Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Gallery item loses selection if over 100th item

(0) ShareShare
ReportReport
Posted on by 71

Hi all, 

 

I have a gallery that loads more than 100 items.  When a user selects an item in the gallery, it displays all the details for that item in a form where they can modify the information for the currently selected record and Save.  

 

If the user is on any of the first 100 items and they click the save button, the gallery stays focused on the current item they have selected.  All good.    However, if they scroll down and select, say item 101 or higher:  When they modify the information and click save, the gallery item selected looses focus entirely where no item is selected and of course the form gets the dreaded "No Items to Display"

 

Anybody else run into this, and would there be a work around?

 

Thanks!

Troy

Categories:
  • v-chenzhi Profile Picture
    v-chenzhi on at
    Re: Gallery item loses selection if over 100th item

    Hi @TeeroyLyon ,

     

    Could you please show me more about your scene?

    May I ask you some questions?

    1. What is your data source?

    2. What is the formula you wrote on the Items in the Gallery?

    I assume you use SharePoint and have a test for your reference.

    I write a simple filter formula on Items of Gallery and Set(Var,ThisItem) on the OnSelect of the Icon.

    vchenzhi_0-1640137793087.png

    Set Var on the Item of edit form.

    vchenzhi_1-1640137825882.png

    After clicking the submit button, the form still shows the selected.

     

     

    Best Regards,

    Zhi Chen

     

     

  • TeeroyLyon Profile Picture
    TeeroyLyon 71 on at
    Re: Gallery item loses selection if over 100th item

    Thanks for providing this solution.  Unfortunately it doesn't work for me.  It might be because I am applying a filter to the items in the gallery (In the Items property of the gallery)

  • v-chenzhi Profile Picture
    v-chenzhi on at
    Re: Gallery item loses selection if over 100th item

    Hi @TeeroyLyon ,

     

    Could you please tell me how you set the item property of your Form? Is it Gallery.Selected?

    If yes, this is an already existing problem, I suggest you use variable.

    I have a test on my side, please try the following workaround.

    Set the OnSelect property of NextArrow icon to:

    Set(Var,ThisItem)

     Set the item property of Form to:

    Var

    It works fine.

     

     

    Best Regards,

    Zhi Chen

  • AJ_Z Profile Picture
    AJ_Z 3,711 on at
    Re: Gallery item loses selection if over 100th item

    Just checking the item on your form is gallery.selected right?
    what datasource are you using to populate gallery is it sharepoint,Sql, dataverse or something else. 
    If you put a label on the screen and do the text as gallery.selected."insert name of data column here" is that blank aswell or just the form

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard