cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Issues with app

There are a ton of issues with my apps right now, and the issues seem to change every day.

On the Home page, there is a button called "button" that has a function of Set(varLoading, false).
There is also a big purple icon of a clock that has its visible property set to: varLoading.
There is an arrow icon in my gallery that then sets the varLoading to true.
In my variables I can see that varLoading appears both in Global and in Home, and it is different values in each.

 

Any idea what am I doing wrong?

 

Kind regards,

Dino

2 REPLIES 2
Highlighted
Super User
Super User

When you have variables that set items showing/hiding you need to make sure you include it on the OnVisible of the screen to give it a starting place. Tell it when you get to the screen do you want it to start out showing or not.

 

To prevent it from being "duplicated" I often do copy/paste and then modify it to make sure it is exact..the slightest difference can make it show as a separate variable. 

Highlighted
Dual Super User III
Dual Super User III

Are you using a Set() to change the value of varLoading on the arrow or an UpdateContext()? Both can be used to create and update variables, but they are different variables.  Set() creates a global variable that is available everywhere in the app.  UpdateContext creates a local variable that is available only on a specific screen.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,487)