cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, How can I write here (the image below) that if we were on screen1 in touchgfx, function1 would be executed, and if we were on screen2 in touchgfx, another function would be executed?

dibadigital
Associate

0693W00000VO9elQAD.jpg

2 REPLIES 2
MM..1
Chief II

Simply in screen setups modify some global variable and here place if or switch.

Karl Yamashita
Lead II

Use screens transition ends for each screen where x is the screen number, or you can use a useful name.

0693W00000VOB3SQAX.pngIn the Model View you would have to pass an argument to your main application letting it know which screen it is on. Then you can call the appropriate function.

If you find my answers useful, click the accept button so that way others can see the solution.