2020-08-20 07:46 AM
Tell me, can I make a button to return to the previous window with data saving?
2020-08-20 10:52 PM
I need your help
2020-08-21 12:40 AM
Hello,
Each screen has a different context and when you switch, all the information from the previous screen is lost.
To solve this, you have the model (Model.cpp) where you can save data in, and you will be able to retrieve it between Screens. You will have to go through the Presenters to set and get variables in the Model from your ScreenView.
Please have a look at the following articles to better understand how TouchGFX works :
https://support.touchgfx.com/docs/development/ui-development/software-architecture/code-structure/
And the best part is that you can find a tutorial that explains how to switch between screens and save data in the Model ;) https://support.touchgfx.com/docs/tutorials/tutorial-03#step-2-saving-data
/Alexandre
2020-09-01 06:36 AM
Try looking through this forum to see if you can find a project i shared that keeps a stack of pointers to previous windows. This allows you to go "back", in the real sense of the word.