Hi, Thanks for reading my question.
I'm building a component that checks if the user has the last version of the app, if true then it get them to the main screen, if false, it displays an error message.
I would like to know how to run the logic automatically.
If(cpn_loading_screen.varAppVersion = LookUp(cpn_loading_screen.Catalogue; Title = cpn_loading_screen.Title; VersionNumber);
Navigate(cpn_loading_screen.Home_Screen);Set(WrongVersion; true))
Here is the code I run to check wether the user uses the last version or not
How could I run this when the component is loaded on the page ? Juste like onVisible properties
Thanks in advance.
Solved! Go to Solution.
I ended up using a Timer as a workaround, but I think it will only work in this case.
The objective was to load, wehther an error message or the home page, when you start the app. Since you won't use that screen except for that specific need, I used a Timer that repeated itself every 1 second that checks if my condition is true or false, and At the end of the Timer, the function is running, so it's kind of an "OnVisible" property.
Feel free to add any idea or info the this thread.
I ended up using a Timer as a workaround, but I think it will only work in this case.
The objective was to load, wehther an error message or the home page, when you start the app. Since you won't use that screen except for that specific need, I used a Timer that repeated itself every 1 second that checks if my condition is true or false, and At the end of the Timer, the function is running, so it's kind of an "OnVisible" property.
Feel free to add any idea or info the this thread.
User | Count |
---|---|
165 | |
90 | |
72 | |
64 | |
62 |
User | Count |
---|---|
210 | |
152 | |
97 | |
86 | |
66 |