2021-04-02 02:10 AM
Hi,
I have a screen that no other screen would transition to it with the help of interactions in the designer,
I know I can transition to other screens with the help of this function
static_cast<FrontendApplication*>(Application::getInstance())->gotoKeyPadScreenScreenNoTransition();
But, what if this transition is not generated with the interactions, How can I change to this KeyPadScreen from code?
2021-04-04 06:58 PM
Hello ali_dehbidi,
You are supposed to use interactions to change screen. This is the way you should do it.
Also as I can see I guess you don't know the current way of changing screen easily by simply calling a function you name yourself (example: changeToKeyPadScreen() )
Here is a post where it is explained : https://community.st.com/s/question/0D53W00000JNyqASAT/screen-change-from-code
There's also a code example that shows how helpful this method can be : https://community.st.com/s/question/0D53W00000dztGZSAY/how-to-change-screen-by-pressing-button-in-scrolllist
Hope this will help,
/Alexandre