Open screen if variable value is?

Open screen if variable value is?

Hi all.
I have main navigation menu where I have few buttons (screen switch).
But for some screens I should to open screen with subnavigation menu.
How to remeber which of subnavigation screens was opened and open it again automatically when main screen was changed...

Example:
Navigation :
1. Process
a) Machine1
b) Machine2
2. Alarms
3. Events

So when I click on Process, then click on Machine2 -> screen Machine2 is opened (remember)
Now goes to screen Alarms...
When goes back, click to Process - automatically open screen Machine2???

Best regards,
MK




This is a migrated post! Originally posted on 03.11.2021 by user milosh. Please be aware that information can be outdated.