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?
Solved! Go to Solution.
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
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.
User | Count |
---|---|
258 | |
111 | |
95 | |
48 | |
41 |