cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cec123
Regular Visitor

Hiding Row in Gallery

Hi All,

 

so I have a gallery and the user is able to go in and hide records. I have it so they click a hide icon and it asks them in a pop-up “yes” or “no” if they want to hide the selected record. When the user clicks yes, how do I then go about actually hiding the selected record? 

2 REPLIES 2
AJ_Z
Super User
Super User

I can think of two ways from just brainstorming now. 

Option 1 we add a new column to your datasource e.g. 'Visibilty Status' then the button in the Item of the Gallery does a Patch e.g Patch(datasource,ThisItem,{'Visibilty Status':"Hidden"}). then add to the filter of the gallery 'Visibilty Status' <> "Hidden".

 

Option 2 Clearcollect the datasource if its needed that way and then use remove to take the row out of the collection.

Let me know which option you are planning on going for and if you need more help with that option.

If my comment was appreciated please like/kudo it to make me smile 🙂 and if it is your solution please click accept as solution

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

AJ_Z
Super User
Super User

I noticed you mentioned a popup instead of this item you would use GalleryName.Selected also everything in red is names i made up so make sure to adjust them

If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (4,388)