Hi
I have the problem
In the first line of code of App OnStart I wrote Navigate(pgExpressions)
and it doesn't works . what is the problem ?
The problem is that App OnStart runs before the screens have completed loading. Since the screen doesn't exist yet you can't navigate to it.
Instead set the default screen to be a splash screen with a timer. When the timer expires have it do the navigate.
Hi . Thank you for your answer
But in other application it works perfect
Its all dependent on timing, how big the screens are, and some settings in the power app. I agree it will work sometimes. But its not reliable to do it in AppStart. The workaround I've provided is the appropriate solution. The fact that it works elsewhere is not a guarantee that it should work in this case.
Thank you very much
May be do you know which application settings I need to check ? I tried to play with "Use non-blocking OnStart rule" . But It didn't help . I tried with Navigate in the first line .Nothing ! I want to try to find some ways not to add new screen
The setting that would normally affect this is the Non-Blocking onStart rule, which you've already seen. As I said, depending on a lot of factors trying to navigate to a screen using the OnStart code is unreliable. There really is no option other than using a specific start screen, like a splash screen.
User | Count |
---|---|
257 | |
108 | |
93 | |
57 | |
40 |