I'm a PowerApps rookie and I've searched through previous replies to this but can't seem to find anything that fixes my problem. I have a gallery in screen one with an edit button with onSelect set to
UpdateContext({TEST: true})
In another Label inside the gallery and a Label outside of the Gallery I have Text set to
TEST
I'm just trying to test to make sure the edit button is working. When I try it out I can never get a change. What am I missing?
Thank you in advance.
Just figured this out as well. The ITEM property in the Parent will determine the functionality. So you can fix this by using DisplayMode.New or DisplayMode.View because DisplayMode.Edit will pull the ITEM property from the parent (which means if there is nothing input into the ITEM property then there is nothing to pull and invalidates your UpdateContext.
Thank you!! you just saved me a huge headache. This was diving me nuts
Good spot and I suppose it makes sense as when in View, nothing is active and will not update. Unfortunately must have been that because the button was set to view and not disabled it was still selectable and gave the illusion that it was/should still be doing something.
Well I finally found the problem. Somehow I changed the DisplayMode of the gallery to view instead of edit. Once I changed it, it worked like a champ.
A little more information. I tried creating a new screen/gallery/button etc.. and I got it to work. The only difference was a used a different data source for the gallery. Both are SharePoint lists and as far as I can tell I have the same permissions for both.
Appreciate the information. Unfortunately I have tried Set() as well and getting the same results. I'll keep digging. Thank you.
Hi,
Before clicking the edit button within Gallery using your same above formula:
After clicking edit:
So not sure what is going on in your app as what you had stated above seems to be doing what you would want to.
Also just remember and also worth trying as a troubleshooting step that if you need to use outside the context of your screen, you can use Global variables. So Set(gblTEST,true) as an example.
Might also be worth checking which property you are typing TEST into of the control.
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,089
Most Valuable Professional