cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Update Property

Is there a way to update another objects property from another?  

 

I have trash Icon, once it is clicked I would like another object, a button, to have a Visible value of true.  How can ou access another objects property? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Update Property

Hi @duncant 

You do that with the UpdateContext() function applied to the first button to set a variable.  You then use the variable to make the second button's visible property either true or false.  So for example make the first button's OnSelect property

 

UpdateContext({var:true})

 

 and make the second button's Visible property  "var".  (without the ").  Set the var property to false as a default in the OnVisible property of the screen. (UpdateContext({var:false}). 

To toggle the visibility of the second button you can set the first button's OnSelect property as UpdateContext({var:!var}).  If you play around with it you will see how it works. 

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Update Property

Hi @duncant 

You do that with the UpdateContext() function applied to the first button to set a variable.  You then use the variable to make the second button's visible property either true or false.  So for example make the first button's OnSelect property

 

UpdateContext({var:true})

 

 and make the second button's Visible property  "var".  (without the ").  Set the var property to false as a default in the OnVisible property of the screen. (UpdateContext({var:false}). 

To toggle the visibility of the second button you can set the first button's OnSelect property as UpdateContext({var:!var}).  If you play around with it you will see how it works. 

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,146)