web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Visibility with...
Power Apps
Unanswered

Update Visibility within Gallery on each item individually

(0) ShareShare
ReportReport
Posted on by 10

I Have a gallery like the picture below; with 2 buttons on each item. One to approve and one to reject. When either is pressed I have a few commands running, like patching a table and sending an email. It takes 2 to 4 seconds to finish and I do not want users to navigate away during this process.

 

If this was not within a gallery and just a button, I usually have a rectangle popup that says processing via a context variable on the visible property; initially set as False, then when the button is pressed the first command is to set the context variable as true, then the other commands get processed, and finally the context variable is set back to false.

 

I cannot do this with context variables within a gallery as the popup would cover all the items instead of just the clicked item.

 

Any advice on how to accomplish this would be greatly appreciated. Thanks in advance!

SKK12_0-1598348469715.png

 

Categories:
  • eka24 Profile Picture
    20,925 on at

    The approach you have already done is the best since you don't want to click another button inside the Gallery. 

     

    However if you want only the gallery approach, use the same principles but insert the rectangle pop up inside the Gallery. This will result in one rectangle per Gallery row. But the update context are similar principles

     

    I answered a similar Post;

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Open-pop-up-for-selected-Gallery-item/m-p/552356

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • SKK12 Profile Picture
    10 on at

    Thank You @eka24,

    I'm trying to use your method towards my goal but I'm completely blanking.

    You method relies on the is selected property. That doesn't work well for me as the popup is visible on whichever item is selected. What I need is the popup to be visible immediately on the click of a button within that gallery item.

    And I already have some of this logic written. When you click on either the approve or reject button, the status in my data gets changed to Approved or Rejected from the original status of Pending. And the buttons have a visible if statement written only true when status is pending. Then I have a label that is only visible when the status is Approved or Rejected that replaces the buttons.

    This works great, the problem is all that logic takes a few seconds to run and in that time the user could have navigated away, so I need an immediate popup just labeled "Processing" that is visible in those seconds from when the button is pressed to when the data is written. Like I said i do this all the time outside of Galleries for my buttons but was hoping to find something that works within a gallery.

    Thanks for all your help so far.

  • SKK12 Profile Picture
    10 on at

    The Alternative, Im thinking which I would rather not do, is not make the button within the gallery individually patch instantly to the data. Instead the user goes row by row and chooses weather to approve or reject. This will be stored locally and then there will be a submit button outside the gallery that patches all the rows at once.

  • eka24 Profile Picture
    20,925 on at

    Am still not sure why you want to use the Gallery Pop up. The objective of what you are doing is to prevent the User from clicking anything until saved. In the case what you have already done with regards to the Pop up is actually the best. 

    What you need to do is just to add the code you have that turn on the Pop up to the Approved button inside the Gallery.

    Then at the end of same button turn the code to false to stop the Pop up.

     

    If you are not sure, give the codes you use for your general pop up for me to adjust it.

     

    The other option of sending the data to a collection first is also good. That would be more productive as it will reduce the number of calls to your Datasource. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard