2021-07-07 11:50 AM
I have 2 screens. The first screen has a button and a text area. The second has a scroll wheel and a button.
What I want:
1) Click on button on screen 1, and go to screen 2 (got this working)
2) Scroll to a number on the scroll wheel on screen 2, hit the button on screen 2, goes back to screen 1 (This also works)
3) The text area on screen 1 should match the scroll wheel number on screen 2 (can't figure this out)
4) When I return to screen 2, scroll wheel should remain on previous selection (does not work)
Simple in concept, but can't figure out how to do this. Any examples out there on how to do this. ? I'm using wildcards for my text areas. the big issue is passing data to screen 1 and also saving data from screen 2.
Any help would be appreciated
Solved! Go to Solution.
2021-07-07 11:55 AM
TouchGFX is based on MVP (Model-View-Presenter) architecture. Common data supposed to be stored in a Model class with corresponding methods to set and get their values. Look for examples at https://support.touchgfx.com/docs/development/ui-development/software-architecture/model-view-presenter-design-pattern
2021-07-07 11:55 AM
TouchGFX is based on MVP (Model-View-Presenter) architecture. Common data supposed to be stored in a Model class with corresponding methods to set and get their values. Look for examples at https://support.touchgfx.com/docs/development/ui-development/software-architecture/model-view-presenter-design-pattern
2021-07-07 12:06 PM
Thanks for the lead. Looks like Tutorial 3 take you through saving data with the model class
2021-07-07 12:20 PM
Exactly