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

Community site session details

Session Id : BIiL/tIFTQBR5FSIxHyIvp
Power Apps - Building Power Apps
Answered

Modify a gallery's UpdateContext condition

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2024 11:57:26 by 361

Hello everybody,

 

I have a gallery that works as an "organization chart", but in each item I have an UpdateContext condition that opens a combobox to change the person's status.

 

However, I noticed that when I click on a person to change their respective status, when I click on another person (another item in the gallery), this combobox opens again to the same person - who I clicked on first -

 

I need to fix this.

 

Here's an example

 

Joaoandrebs_0-1713353295466.png  I clicked on "Artur", thats ok.

Joaoandrebs_1-1713353365214.png I clicked on "Guilherme", but combobox opened on "Artur", not ok.

 

 

 

Formulas: 

Joaoandrebs_2-1713354795649.png

Joaoandrebs_3-1713354846376.png

Joaoandrebs_4-1713354880365.png

 

 

 

 

 

 

 

 

I have the same question (0)
  • Joaoandrebs Profile Picture
    361 on 22 Apr 2024 at 10:40:58
    Re: Modify a gallery's UpdateContext condition
    I believe that's what it was, thank you
  • Verified answer
    timl Profile Picture
    35,483 Super User 2025 Season 2 on 17 Apr 2024 at 13:53:57
    Re: Modify a gallery's UpdateContext condition

    Hi @Joaoandrebs 

    Context variables are case sensitive. In the call to UpdateContext, you're setting the variable varID. In the formula where you reference this (I guess this is the Visible property of the combobox?), it's spelled VARID (all in capitals).
    If you adjust your formula to use varID, that should hopefully help.

  • Joaoandrebs Profile Picture
    361 on 17 Apr 2024 at 12:23:52
    Re: Modify a gallery's UpdateContext condition

    Your answer is weird, if it does not help, dont comment at all 🙂

  • VishalJhaveri Profile Picture
    1,167 Moderator on 17 Apr 2024 at 12:01:19
    Re: Modify a gallery's UpdateContext condition

    This must not happen. It's a weird issue.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard