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
Advocate II
Advocate II

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
Advocate II
Advocate II

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,202)