Skip to main content
Ezgi
Associate III
May 21, 2021
Question

Changing Screen

  • May 21, 2021
  • 1 reply
  • 563 views

Hi,

I want to change the screen from model. Do I have to declare the goto methods in the current screen and its presenter? Do I have to do the same thing for using appSwitchScreen()? Is there another way to do it without declaring goto methods in the current screen or its presenter?

This topic has been closed for replies.

1 reply

qq3g7bad
Visitor II
May 22, 2021

Hello. How about trying the following?

  • Create an action and its linking interaction on your screen in TouchGFX Designer.
  • This interaction is set as following.
    • Trigger: action* is called.
    • Action: Change screen.
    • Choose screen: The screen you want to transition
  • Then, call action*() method from your view or presenter.

If you want to change screen from the model, the following document may be helpful. You can call the method you created in your presenter from the model.

https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication