I'm having trouble with an app that I'm building.
I've set a specific screen in the new App.StartScreen property. I've moved some pre-loading code out of the App.OnStart property and into the OnVisible property of the screen loaded via StartScreen and I am using that as a loading screen as I was lead to believe that this was best practice.
I've tested it in the studio and all works as expected, the OnVisible is triggered when I switch between screens. The relevant variables are set and collections are created. However, as soon as I publish it and try to run the app, the OnVisible never gets triggered and the app just sits on the StartScreen not doing anything!
I've been trying to get this to work all week, so if anyone has any ideas that can save my sanity, please help!
Solved! Go to Solution.
Tracked down the issue. There was an error in the OnVisible PowerFX that wasn't showing as an error (no red squiggles). Spotted it when checking the status of various variables that there was an assignment error when setting one of them. This was stopping the OnVisible from triggering!
No idea why it wasn't showing as an error, but having fixed that, the OnVisible now runs again, so I'll finally be able to sleep tonight!
Tracked down the issue. There was an error in the OnVisible PowerFX that wasn't showing as an error (no red squiggles). Spotted it when checking the status of various variables that there was an assignment error when setting one of them. This was stopping the OnVisible from triggering!
No idea why it wasn't showing as an error, but having fixed that, the OnVisible now runs again, so I'll finally be able to sleep tonight!