Hello!
I am having a problem with a gallery popup.
What I need to do, is update a record on my gallery, when a button is clicked. I built the popup, but it appears on every single record displayed. And I only want it to show on the record I have selected (not all records have the button displayed, because it is only visible for those which have "No" in a certain column)
I looked for solutions here, and I found a few, but I can't make it work. I tried adding a new column (a solution I read), didn't work. Also tried and IF function If(ThisItem.IsSelected;!variable;variable), and it worked on opening the popup, but I couldn't close it... Tried filtering ID column, but I couldn't break the function.
Can you help me please?
Brilliant!!!
Totally worked!
Thank you so much!!!!
HI @Fernanda ,
I'd suggest to change the Visible property of the popup to:
varRenovacio && ThisItem.IsSelected
With this, it will only show up for the selected Item.
To make the popup disappear when selecting another item, include the below in the OnSelect property of the gallery:
UpdateContext({varRenovacion:false});
HI @Fernanda ,
I'd suggest to change the Visible property of the popup to:
varRenovacio && ThisItem.IsSelected
With this, it will only show up for the selected Item.
To make the popup disappear when selecting another item, include the below in the OnSelect property of the gallery:
UpdateContext({varRenovacion:false});
Indeed... but still, also great way to learn more
Hi!
I already did that and it works, but it doesnt convince us visually. I have always thought that PowerApps is way smarter than I am 🤣 so I am hoping there is a workaround or a smart way of doing it.
If not, putting it outside of the gallery is the solution (I just hope not 🙂)
Hello! thanks for the reply!
It works just showing me the popup for that record, but I can't close it down again without clicking on another record. I need to click on the X button to get back to the record.
Right now, I came back to the basics of the popUp and my functions are:
Button 1:
UpdateContext({varRenovacion:true})
Button 2:
UpdateContext({varRenovacion:false})
PopUp Group Visible Property:
If i just change the visible property, it does open up when I click anywhere... But I only want it open when Button 1 is clicked (it only shows when a criteria is met, not always) and it must clos when Button 2 is clicked.
I tried using your idea by changing true for ThisItem.IsSelected, but didn't work well and I couldn't close the popup
Please add this condition to the Visible property of the popup to make it only visible for the selected item in the gallery:
ThisItem.IsSelected
WarrenBelz
770
Most Valuable Professional
stampcoin
494
MS.Ragavendar
399