cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
matix003
Helper I
Helper I

How do I hide any SharePoint list row in PowerApps?

I have a gallery in PowerApps showing my SharePoint list items. I have added a trash icon in each row which when clicked should hide that particular row. These hidden rows should remain in the SharePoint list but hidden in PowerApps. How do I achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
jimbobcook1
Resolver I
Resolver I

You could create a column in your SharePoint list called Status (Single Line Text) then when you create a new item set Status to "Active" as Default (in SharePoint or the PowerApp in a Patch) then when you hit the trash icon in your gallery you could patch Gallery.Selected with "Hidden" and set your gallery Items to Filter to show only the Active items...

 

Maybe a patch like this

OnSelect for Bin icon = Patch(SharePointListHere,Gallery1.Selected,{Status:"Hidden"})

 

Set Gallery Items to this

Items = Filter(SharePointListHere,Status = "Active")

 

Hope that makes sense

 

Cheers

View solution in original post

2 REPLIES 2
jimbobcook1
Resolver I
Resolver I

You could create a column in your SharePoint list called Status (Single Line Text) then when you create a new item set Status to "Active" as Default (in SharePoint or the PowerApp in a Patch) then when you hit the trash icon in your gallery you could patch Gallery.Selected with "Hidden" and set your gallery Items to Filter to show only the Active items...

 

Maybe a patch like this

OnSelect for Bin icon = Patch(SharePointListHere,Gallery1.Selected,{Status:"Hidden"})

 

Set Gallery Items to this

Items = Filter(SharePointListHere,Status = "Active")

 

Hope that makes sense

 

Cheers

Thank you so much! This works wonderfully.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,151)