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 / Show no items in gallery
Power Apps
Unanswered

Show no items in gallery

(0) ShareShare
ReportReport
Posted on by 237

I have a screen that has a gallery on it to add rows and fill out additional details. It is an editable grid. The gallery is connected to a SharePoint list, but I want it to appear blank when users land on that screen. Currently it lists out all of the items, however, I just want the new items to appear when Add row is clicked on.

 

Right now all items are visible, but I want the gallery to be blank when the user lands on this screen to be able to add new rows.

NPatel12498_0-1692827269982.png

 

Categories:
I have the same question (0)
  • NP-18101421-0 Profile Picture
    237 on at

    Again, this code doesn't allow me to add rows and fill in the rows after hitting the add rows button.

    NPatel12498_0-1693491790137.png

     

    This is the screen before I select Add row:

    NPatel12498_1-1693492304924.png

     

    This is after I select add row:

    NPatel12498_2-1693492839794.png

     

     

  • rpersad Profile Picture
    776 on at

    Another approach could be is when u click on the add row button you submit the record with all blank values. 

    Then u can get the ID of the last row, that you just submitted using the formula

    Set(LastID, Last(Sort("Sharepoint List",ID,Ascending)).ID)

     Then filter out the collection by the value stored in LastID.

  • NP-18101421-0 Profile Picture
    237 on at

    This the only required field I have in the SharePoint list as of right now:

    NPatel12498_0-1692898182752.png

     

  • rpersad Profile Picture
    776 on at

    Are there any required fields in your list. If so you can try filtering using a required column, if not you may have to check all the columns for blank.

  • NP-18101421-0 Profile Picture
    237 on at

    The ID in the gallery is actually linked to the SharePoint list as Title.

     

    NPatel12498_0-1692893172298.png

     

  • rpersad Profile Picture
    776 on at

    What columns have you tried to filter the gallery by?

  • NP-18101421-0 Profile Picture
    237 on at

    I have tried this approach. But, when I click add row, it doesn't show a new row at all. All the other items do disappear but there should be a new row added to allow the user to input data.

     

    NPatel12498_0-1692888809987.png

     

  • rpersad Profile Picture
    776 on at

    Just thinking about the scenario what you can do is use a conditional statement to filter the gallery when the Add Row button is clicked.

     

    So how the logic will work is when you click the Add Row button and a new gallery item is added, set a variable to true.

    Set(newItem, true);

    In the Item property of the gallery use an If statement to check if the variable newItem is true, filter where ID is blank else display entire gallery. Not sure if you would be able to check the ID but you can check if another required field is blank.

    If(newItem,
    Filter(collection, ID = Blank()),
    collection
    )

     

    Of course once you click the Save button you would have to set the newItem variable to false.

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 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard