cancel
Showing results for 
Search instead for 
Did you mean: 

How to transition screen, without the designer

ali_dehbidi
Senior

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?

1 REPLY 1
Alexandre RENOUX
Principal

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