Skip to main content
ali_dehbidi
Associate III
April 2, 2021
Question

How to transition screen, without the designer

  • April 2, 2021
  • 1 reply
  • 962 views

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?

This topic has been closed for replies.

1 reply

Alexandre RENOUX
Visitor II
April 5, 2021

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