Hi guys
Say we have main Screen, that loads a record from a database , and stores it in a global Vaiable (recMyClient).
We have 5 screens all depending on this Global Variable that use Data cards.
We run in Monitor, and When we want to go to screen 1, We load the recMyClient, and go to that screen.
To our surprise, Monitor is also reporting, that Screen2, 3, 4 and 5 are updating their Data cards, Even though the user might never go to these screens.
This is causing some performance issues, and we are surprised, why screens that are not displayed, are being refreshed... etc.
Any insight?
Thanks
Fadi
Solved! Go to Solution.
Hi @eka24
Thanks for your reply, we understand the difference between global, local...etc.
The issue we just realized, that the difference between running the monito from the Studio, vs from a published app.
Dah... Running form Studio, where all the screens are loaded, will have the mentioned effect, just a side effect of the Studio, Vs Published apps which are behaving as expected.
My understanding of the issue stated is that you have used the Global variable in all the screens. If you used Set function in coding the variable, then that is how is supposed to behave because it's global and therefore whether you are on the screen or not.
If you want the variable to perform only when you move to that screen, then use UpdateContext in setting that variable for each screen.
That way, the variable starts only when you are on that screen.
You may state the formula for the variable if the explanation is not clear enough.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @eka24
Thanks for your reply, we understand the difference between global, local...etc.
The issue we just realized, that the difference between running the monito from the Studio, vs from a published app.
Dah... Running form Studio, where all the screens are loaded, will have the mentioned effect, just a side effect of the Studio, Vs Published apps which are behaving as expected.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
194 | |
68 | |
48 | |
42 | |
20 |
User | Count |
---|---|
253 | |
122 | |
83 | |
76 | |
69 |