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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / UpdateContext problem
Power Apps
Unanswered

UpdateContext problem

(0) ShareShare
ReportReport
Posted on by 19

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?

Navig8tr_1-1613943577028.png

 


Thank you in advance.

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi,

    Before clicking the edit button within Gallery using your same above formula:

    HenryARPhillips_0-1613946596300.png

     

    After clicking edit:

    HenryARPhillips_1-1613946618218.png

     

    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.

     

    HenryARPhillips_2-1613946700507.png

     

    HenryARPhillips_3-1613946719241.png

     

     

    Might also be worth checking which property you are typing TEST into of the control.

  • Navig8tr Profile Picture
    19 on at

    Appreciate the information. Unfortunately I have tried Set() as well and getting the same results. I'll keep digging. Thank you.

  • Navig8tr Profile Picture
    19 on at

    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.

  • Verified answer
    Navig8tr Profile Picture
    19 on at

    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.

  • Community Power Platform Member Profile Picture
    on at

    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.

  • BeerPowerData Profile Picture
    3 on at

    Thank you!! you just saved me a huge headache. This was diving me nuts

  • LouisC Profile Picture
    27 on at

     

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard