7/7/2023 5:50 AM | |
Joined: 1/21/2013 Last visit: 10/10/2024 Posts: 3173 Rating: (491)
|
Hi, I am pretty sure that the problem you are having is with the screen change itself. The ChangeScreen method should always be the last method called when changing the screen to which the event belongs. Otherwise, the script will stop after the screen change to free up resources. However, in your case, this information would not be helpful since you want to change two screens in the same object path. This is an interesting question, and one I haven't encountered before. I have three possible solutions in mind, but I don't know which one would help because I'm not sure of the conditions under which a script is aborted on screen change.
It would be interesting for me - and probably someone else in the community - to learn about the solution you used. Thanks in advance! Kind regards |
This contribution was helpful to1 thankful Users |
7/7/2023 10:17 AM | |
Joined: 2/13/2023 Last visit: 8/21/2024 Posts: 14 Rating: (2) |
Hi Stefan and thank you for your prompt answer and suggestions. The problem appears to be in the screen change indeed. The script is only running until first screen change instruction is encountered and there's nothing to do about it atm. This was one of my first thoughts too so I already tried the "ChangeScreenAsync" hoping it will solve my problem but the magic didn't happen. As much as I wanted to avoid using local tags for screen navigation (already doing that on some of the other screens) because it complicates the future customization/updates for non-dev users, this is exactly what I did. In the button event script, apart from activating the screen, a local scope string tag is set from a GlobalModule array based on the required index (have multiple buttons with specific pages to be opened). Might be not the finest way to do it but seems to be the best workaround for my needs. Some screenshots of my solution are attached below, hopefully my experience and explanation comes in handy for other users. Cheers! |
This contribution was helpful to2 thankful Users |
Follow us on